Go back to Shelf screen onBackPressed()

pull/263/head
javlon 3 years ago committed by Koitharu
parent e11e890818
commit e6a0578884

3
.idea/.gitignore vendored

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -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()
}
}

Loading…
Cancel
Save