Fix width of drawer
This commit is contained in:
parent
51e25a0bdd
commit
9e29f40892
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue