We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112f4ba commit 323527bCopy full SHA for 323527b
app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.java
@@ -616,7 +616,11 @@ private void updateNearbyNotification(@Nullable NearbyController.NearbyPlacesInf
616
String distance = formatDistanceBetween(curLatLng, closestNearbyPlace.location);
617
closestNearbyPlace.setDistance(distance);
618
nearbyNotificationCardView.updateContent(closestNearbyPlace);
619
- nearbyNotificationCardView.setVisibility(View.VISIBLE);
+ if (mediaDetailPagerFragment != null && mediaDetailPagerFragment.isVisible()) {
620
+ nearbyNotificationCardView.setVisibility(View.GONE);
621
+ }else {
622
+ nearbyNotificationCardView.setVisibility(View.VISIBLE);
623
+ }
624
} else {
625
// Means that no close nearby place is found
626
nearbyNotificationCardView.setVisibility(View.GONE);
0 commit comments