From b260c0fb96426e9c84c412e1e4999c6a71475ad6 Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Sat, 14 Sep 2013 20:10:39 +0200 Subject: Gallery2: Fix show on map typo Change-Id: Ie67b945f20c93972e090ebda0391f6e40a0c7b8d Signed-off-by: Jorge Ruesga --- src/com/android/gallery3d/util/GalleryUtils.java | 4 ++-- 1 file 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); -- cgit v1.2.3