MainActivity: Fix crash on back pressed (#7731)

This commit is contained in:
Ivan Iskandar 2022-08-12 23:20:39 +07:00 committed by GitHub
parent 71fc5d6d35
commit 441e7bf8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -491,7 +491,6 @@ class MainActivity : BaseActivity() {
if (backstackSize == 1 && startScreen == null) { if (backstackSize == 1 && startScreen == null) {
// Return to start screen // Return to start screen
moveToStartScreen() moveToStartScreen()
setSelectedNavItem(startScreenId)
} else if (startScreen != null && router.handleBack()) { } else if (startScreen != null && router.handleBack()) {
// Clear selection for Library screen // Clear selection for Library screen
} else if (shouldHandleExitConfirmation()) { } else if (shouldHandleExitConfirmation()) {