Skip to content

Commit 552d938

Browse files
authored
Merge pull request #9521 from rafaeltonholo/uplift/9472/fix-navigating-back-not-working
Uplift: fix(message-list): app crash when threaded view is enabled
2 parents f5b747a + 7acf42f commit 552d938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

legacy/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,11 +1453,11 @@ open class MessageList :
14531453
this.search = search
14541454
singleFolderMode = false
14551455

1456+
val folderIds = search.folderIds
14561457
if (search.searchAllAccounts()) {
14571458
val accountUuids = search.accountUuids
14581459
if (accountUuids.size == 1) {
14591460
account = accountManager.getAccount(accountUuids.elementAt(0))
1460-
val folderIds = search.folderIds
14611461
singleFolderMode = folderIds.size == 1
14621462
} else {
14631463
account = null
@@ -1466,7 +1466,7 @@ open class MessageList :
14661466
if (account == null && search.accountUuids.size == 1) {
14671467
account = accountManager.getAccount(search.accountUuids.elementAt(0))
14681468
}
1469-
singleFolderMode = true
1469+
singleFolderMode = folderIds.size == 1
14701470
}
14711471

14721472
configureDrawer()

0 commit comments

Comments
 (0)