mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-30 22:34:02 +01:00
Fixed flickering of nearby banner compass (#5486)
This commit is contained in:
parent
9e970123fd
commit
5661e8c332
2 changed files with 4 additions and 5 deletions
|
|
@ -542,7 +542,7 @@ public class ContributionsFragment
|
|||
String distance = formatDistanceBetween(curLatLng, closestNearbyPlace.location);
|
||||
closestNearbyPlace.setDistance(distance);
|
||||
direction = (float) computeBearing(curLatLng, closestNearbyPlace.location);
|
||||
nearbyNotificationCardView.updateContent(closestNearbyPlace, direction);
|
||||
nearbyNotificationCardView.updateContent(closestNearbyPlace);
|
||||
} else {
|
||||
// Means that no close nearby place is found
|
||||
nearbyNotificationCardView.setVisibility(View.GONE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue