mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Ensure bottom navigation bar is visible on back navigation
This commit is contained in:
parent
7d96e94689
commit
cc7ce34021
1 changed files with 10 additions and 5 deletions
|
|
@ -381,6 +381,7 @@ after opening the app.
|
|||
if (contributionsFragment?.backButtonClicked() != true) { //If this one does not want to handle
|
||||
// the back press, let the activity do so
|
||||
super.onBackPressed()
|
||||
showTabs()
|
||||
}
|
||||
}
|
||||
ActiveFragment.NEARBY -> {
|
||||
|
|
@ -390,6 +391,7 @@ after opening the app.
|
|||
supportFragmentManager.beginTransaction().remove(it).commit()
|
||||
}
|
||||
setSelectedItemId(NavTab.CONTRIBUTIONS.code())
|
||||
showTabs()
|
||||
}
|
||||
}
|
||||
ActiveFragment.EXPLORE -> {
|
||||
|
|
@ -400,14 +402,17 @@ after opening the app.
|
|||
} else {
|
||||
setSelectedItemId(NavTab.CONTRIBUTIONS.code())
|
||||
}
|
||||
showTabs()
|
||||
}
|
||||
}
|
||||
ActiveFragment.BOOKMARK -> {
|
||||
// Means that bookmark fragment is visible
|
||||
bookmarkFragment?.onBackPressed()
|
||||
showTabs()
|
||||
}
|
||||
else -> {
|
||||
super.onBackPressed()
|
||||
showTabs()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue