Fix width of drawer
@@ -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)
