Ensure bottom navigation bar is visible on back navigation

This commit is contained in:
Kota-Jagadeesh 2025-10-16 23:15:50 +05:30
parent 7d96e94689
commit cc7ce34021

View file

@ -381,6 +381,7 @@ after opening the app.
if (contributionsFragment?.backButtonClicked() != true) { //If this one does not want to handle if (contributionsFragment?.backButtonClicked() != true) { //If this one does not want to handle
// the back press, let the activity do so // the back press, let the activity do so
super.onBackPressed() super.onBackPressed()
showTabs()
} }
} }
ActiveFragment.NEARBY -> { ActiveFragment.NEARBY -> {
@ -390,6 +391,7 @@ after opening the app.
supportFragmentManager.beginTransaction().remove(it).commit() supportFragmentManager.beginTransaction().remove(it).commit()
} }
setSelectedItemId(NavTab.CONTRIBUTIONS.code()) setSelectedItemId(NavTab.CONTRIBUTIONS.code())
showTabs()
} }
} }
ActiveFragment.EXPLORE -> { ActiveFragment.EXPLORE -> {
@ -400,14 +402,17 @@ after opening the app.
} else { } else {
setSelectedItemId(NavTab.CONTRIBUTIONS.code()) setSelectedItemId(NavTab.CONTRIBUTIONS.code())
} }
showTabs()
} }
} }
ActiveFragment.BOOKMARK -> { ActiveFragment.BOOKMARK -> {
// Means that bookmark fragment is visible // Means that bookmark fragment is visible
bookmarkFragment?.onBackPressed() bookmarkFragment?.onBackPressed()
showTabs()
} }
else -> { else -> {
super.onBackPressed() super.onBackPressed()
showTabs()
} }
} }
} }