Skip to content

Commit 108ca26

Browse files
kamilya35231misaochan
authored andcommitted
Fix for commons-app#1437 :Button that opens Google Maps shows always only the coordinates of the first chosen mark (commons-app#1446)
1 parent 8b118b3 commit 108ca26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ private void passInfoToSheet(Place place) {
671671

672672
directionsButton.setOnClickListener(view -> {
673673
//Open map app at given position
674-
Intent mapIntent = new Intent(Intent.ACTION_VIEW, place.location.getGmmIntentUri());
674+
Intent mapIntent = new Intent(Intent.ACTION_VIEW, this.place.location.getGmmIntentUri());
675675
if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {
676676
startActivity(mapIntent);
677677
}

0 commit comments

Comments
 (0)