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:
commit
e0cbc45688
1 changed files with 9 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue