Fix width of drawer

This commit is contained in:
cketti 2021-03-03 21:18:31 +01:00
parent 51e25a0bdd
commit 9e29f40892

View file

@ -59,6 +59,7 @@ import com.fsck.k9.ui.permissions.Permission
import com.fsck.k9.ui.permissions.PermissionUiHelper
import com.fsck.k9.view.ViewSwitcher
import com.fsck.k9.view.ViewSwitcher.OnSwitchCompleteListener
import com.mikepenz.materialdrawer.util.getOptimalDrawerWidth
import org.koin.android.ext.android.inject
import org.koin.core.KoinComponent
import org.koin.core.inject
@ -162,6 +163,9 @@ open class MessageList :
insets
}
val swipeRefreshLayout = findViewById<View>(R.id.material_drawer_swipe_refresh)
swipeRefreshLayout.layoutParams.width = getOptimalDrawerWidth(this)
initializeActionBar()
initializeDrawer(savedInstanceState)