Skip to content

Commit d45ff21

Browse files
authored
Merge pull request commons-app#1021 from maskaravivek/bugFix
Fix issue where map opens with incorrect coordinates
2 parents 2a80b7f + 3036a33 commit d45ff21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ private void openWebBrowser(String url) {
384384
private void openMap(LatLng coordinates) {
385385
//Open map app at given position
386386
Uri gmmIntentUri = Uri.parse(
387-
"geo:0,0?q=" + coordinates.getLatitude() + "," + coordinates.getLatitude());
387+
"geo:0,0?q=" + coordinates.getLatitude() + "," + coordinates.getLongitude());
388388
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
389389

390390
if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {

0 commit comments

Comments
 (0)