MainActivity: Fix crash on back pressed (#7731)

(cherry picked from commit 441e7bf8b13d320b39a03d998d76fd5096ac9e60)
This commit is contained in:
Ivan Iskandar 2022-08-12 23:20:39 +07:00 committed by Jobobby04
parent 04cab544e3
commit c0761e8b19

View File

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