Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit e0cbc456 authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #6161 from thundernest/fix_reset_action_mode

Set the "message list visible" flag when opening a folder from the drawer
parents 1c66f29a d396e66c
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -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() {