Fix for #1437 :Button that opens Google Maps shows always only the coordinates of the first chosen mark (#1446)

This commit is contained in:
kamilya35231 2018-04-16 17:37:04 +06:00 committed by neslihanturan
parent b012ce4142
commit 35a7d49590

View file

@ -666,7 +666,7 @@ public class NearbyMapFragment extends DaggerFragment {
directionsButton.setOnClickListener(view -> {
//Open map app at given position
Intent mapIntent = new Intent(Intent.ACTION_VIEW, place.location.getGmmIntentUri());
Intent mapIntent = new Intent(Intent.ACTION_VIEW, this.place.location.getGmmIntentUri());
if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {
startActivity(mapIntent);
}