mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Fix issue where map opens with incorrect coordinates
This commit is contained in:
parent
bdcd2ace33
commit
3036a3372b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue