Merge pull request #1021 from maskaravivek/bugFix

Fix issue where map opens with incorrect coordinates
This commit is contained in:
Paul Hawke 2017-12-19 21:29:06 -06:00 committed by GitHub
commit d45ff218f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -384,7 +384,7 @@ public class MediaDetailFragment extends DaggerFragment {
private void openMap(LatLng coordinates) {
//Open map app at given position
Uri gmmIntentUri = Uri.parse(
"geo:0,0?q=" + coordinates.getLatitude() + "," + coordinates.getLatitude());
"geo:0,0?q=" + coordinates.getLatitude() + "," + coordinates.getLongitude());
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {