diff options
| author | Jorge Ruesga <jorge@ruesga.com> | 2013-09-14 20:10:39 +0200 |
|---|---|---|
| committer | Jorge Ruesga <jorge@ruesga.com> | 2013-09-14 20:15:19 +0200 |
| commit | b260c0fb96426e9c84c412e1e4999c6a71475ad6 (patch) | |
| tree | 7e302f67ec04c26e67ec3c3637ac3797987a3146 | |
| parent | 5ed2855a2bd82424a3fc49e6a08dd641f1dc5f09 (diff) | |
| download | android_packages_apps_Gallery2-cm-10.1.tar.gz android_packages_apps_Gallery2-cm-10.1.tar.bz2 android_packages_apps_Gallery2-cm-10.1.zip | |
Change-Id: Ie67b945f20c93972e090ebda0391f6e40a0c7b8d
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
| -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); |
