Following the conversation in PR #4025:
https://github.com/k9mail/k-9/pull/4025
This commit is contained in:
Vasyl Gello 2019-04-23 21:02:19 +03:00
parent da49739c5e
commit af6550d47d
2 changed files with 7 additions and 1 deletions

View file

@ -1664,7 +1664,7 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
} else if (search.getId().equals(SearchAccount.UNIFIED_INBOX)) {
drawer.selectUnifiedInbox();
} else {
drawer.selectFolder(null);
drawer.deselect();
}
}
}

View file

@ -278,6 +278,12 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) {
updateFolderSettingsItem()
}
fun deselect() {
unifiedInboxSelected = false
openedFolderServerId = null
drawer.deselect()
}
fun selectUnifiedInbox() {
unifiedInboxSelected = true
openedFolderServerId = null