mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
* fixes #4096 * reformed the codechange * reformed the codechange
This commit is contained in:
parent
c3700c9234
commit
6286607fc5
1 changed files with 6 additions and 1 deletions
|
|
@ -241,7 +241,12 @@ public class MainActivity extends BaseActivity
|
|||
contributionsFragment.backButtonClicked();
|
||||
} else if (nearbyParentFragment != null && activeFragment == ActiveFragment.NEARBY) {
|
||||
// Means that nearby fragment is visible
|
||||
nearbyParentFragment.backButtonClicked();
|
||||
/* If function nearbyParentFragment.backButtonClick() returns false, it means that the bottomsheet is
|
||||
not expanded. So if the back button is pressed, then go back to the Contributions tab */
|
||||
if(!nearbyParentFragment.backButtonClicked()){
|
||||
getSupportFragmentManager().beginTransaction().remove(nearbyParentFragment).commit();
|
||||
setSelectedItemId(NavTab.CONTRIBUTIONS.code());
|
||||
}
|
||||
} else if (exploreFragment != null && activeFragment == ActiveFragment.EXPLORE) {
|
||||
// Means that explore fragment is visible
|
||||
exploreFragment.onBackPressed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue