Fixed flickering of nearby banner compass (#5486)

This commit is contained in:
Shashwat Kedia 2024-01-29 05:32:30 +05:30 committed by GitHub
parent 9e970123fd
commit 5661e8c332
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

@ -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);