diff options
| -rw-r--r-- | src/com/android/gallery3d/util/GalleryUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/util/GalleryUtils.java b/src/com/android/gallery3d/util/GalleryUtils.java index 5932c367a..df71f2be4 100644 --- a/src/com/android/gallery3d/util/GalleryUtils.java +++ b/src/com/android/gallery3d/util/GalleryUtils.java @@ -286,7 +286,7 @@ public class GalleryUtils { // The q=(lat, lng) syntax is suggested by geo-team. ComponentName gmmCompName = new ComponentName(MAPS_PACKAGE_NAME, MAPS_CLASS_NAME); String gmmUri = formatLatitudeLongitude("http://maps.google.com/maps?f=q&q=(%f,%f)", - 0.0d, 0.0d); + latitude, longitude); Intent gmmIntent = new Intent(); gmmIntent.setComponent(gmmCompName); gmmIntent.setData(Uri.parse(gmmUri)); @@ -298,7 +298,7 @@ public class GalleryUtils { // 2.- Geolocation content provider Log.w(TAG, "GMM activity not found! Trying with geo scheme"); - String geoUri = formatLatitudeLongitude("geo:%f,%f", 0.0d, 0.0d); + String geoUri = formatLatitudeLongitude("geo:%f,%f", latitude, longitude); Intent geoIntent = new Intent(); geoIntent.setData(Uri.parse(geoUri)); geoIntent.setAction(Intent.ACTION_VIEW); |
