Go back to Shelf screen onBackPressed()

This commit is contained in:
javlon
2023-01-27 00:04:36 +05:00
committed by Koitharu
parent e11e890818
commit e6a0578884
2 changed files with 6 additions and 1 deletions

View File

@@ -150,7 +150,9 @@ class MainActivity :
setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)
runOnCommit { onSearchClosed() }
}
navigationDelegate.primaryFragment !is ShelfFragment -> {
bottomNav?.selectedItemId = R.id.nav_shelf
}
else -> super.onBackPressed()
}
}