From cc7ce340218701f0cfcbc7043c50e92b81339e4c Mon Sep 17 00:00:00 2001 From: Kota-Jagadeesh Date: Thu, 16 Oct 2025 23:15:50 +0530 Subject: [PATCH] Ensure bottom navigation bar is visible on back navigation --- .../nrw/commons/contributions/MainActivity.kt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.kt b/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.kt index ac7068cc7..52a011314 100644 --- a/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.kt +++ b/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.kt @@ -381,7 +381,8 @@ 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 -> { // Means that nearby fragment is visible @@ -390,7 +391,8 @@ after opening the app. supportFragmentManager.beginTransaction().remove(it).commit() } setSelectedItemId(NavTab.CONTRIBUTIONS.code()) - } + showTabs() + } } ActiveFragment.EXPLORE -> { // Explore Fragment is visible @@ -400,15 +402,18 @@ 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() + } } }