mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
fixed 4731: Nearby banner appearing in Media Details (#5150)
* fixed 4731: Nearby banner appearing in Media Details * fixed 4731: Nearby banner appearing in Media Details
This commit is contained in:
parent
4f1265643f
commit
7da7062e3a
1 changed files with 5 additions and 0 deletions
|
|
@ -498,6 +498,11 @@ public class ContributionsFragment
|
|||
// Means that no close nearby place is found
|
||||
nearbyNotificationCardView.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
// Prevent Nearby banner from appearing in Media Details, fixing bug https://github.com/commons-app/apps-android-commons/issues/4731
|
||||
if (mediaDetailPagerFragment != null && !contributionsListFragment.isVisible()) {
|
||||
nearbyNotificationCardView.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue