Skip to content

Commit 35a7d49

Browse files
kamilya35231neslihanturan
authored andcommitted
Fix for #1437 :Button that opens Google Maps shows always only the coordinates of the first chosen mark (#1446)
1 parent b012ce4 commit 35a7d49

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
@@ -666,7 +666,7 @@ private void passInfoToSheet(Place place) {
666666

667667
directionsButton.setOnClickListener(view -> {
668668
//Open map app at given position
669-
Intent mapIntent = new Intent(Intent.ACTION_VIEW, place.location.getGmmIntentUri());
669+
Intent mapIntent = new Intent(Intent.ACTION_VIEW, this.place.location.getGmmIntentUri());
670670
if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {
671671
startActivity(mapIntent);
672672
}

0 commit comments

Comments
 (0)