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 misaochan
parent 8b118b309c
commit 108ca26967

View file

@ -671,7 +671,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);
}