Merge pull request #6161 from thundernest/fix_reset_action_mode

Set the "message list visible" flag when opening a folder from the drawer
This commit is contained in:
cketti 2022-07-14 12:36:53 +02:00 committed by GitHub
commit e0cbc45688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -595,8 +595,7 @@ open class MessageList :
return object : DrawerListener {
override fun onDrawerClosed(drawerView: View) {
if (openFolderTransaction != null) {
openFolderTransaction!!.commit()
openFolderTransaction = null
commitOpenFolderTransaction()
}
}
@ -619,14 +618,20 @@ open class MessageList :
search.addAllowedFolder(folderId)
performSearch(search)
onMessageListDisplayed()
}
private fun openFolderImmediately(folderId: Long) {
openFolder(folderId)
commitOpenFolderTransaction()
}
private fun commitOpenFolderTransaction() {
openFolderTransaction!!.commit()
openFolderTransaction = null
messageListFragment!!.onListVisible()
onMessageListDisplayed()
}
fun openUnifiedInbox() {