MainActivity: Fix crash on back pressed (#7731)
(cherry picked from commit 441e7bf8b13d320b39a03d998d76fd5096ac9e60)
This commit is contained in:
parent
04cab544e3
commit
c0761e8b19
1 changed files with 0 additions and 1 deletions
|
|
@ -545,7 +545,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()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue