diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-11-21 19:25:03 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-11-21 19:25:03 +0100 |
| commit | 2ebbd3c2615c6ab93658f49e092a7f299ec92079 (patch) | |
| tree | 51f53b79e05577e16bfc4dea5f75807ce8bb4f2a | |
| parent | 32a3cab0f7ffe941fa8a4a4515fd444ca3052d28 (diff) | |
| download | cgeo-2ebbd3c2615c6ab93658f49e092a7f299ec92079.zip cgeo-2ebbd3c2615c6ab93658f49e092a7f299ec92079.tar.gz cgeo-2ebbd3c2615c6ab93658f49e092a7f299ec92079.tar.bz2 | |
have Google Maps directions only on Google Maps devices
| -rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/GoogleMapsDirectionApp.java | 3 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/maps/MapProviderFactory.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/GoogleMapsDirectionApp.java b/main/src/cgeo/geocaching/apps/cache/navi/GoogleMapsDirectionApp.java index 38ddae6..db4fc1c 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/GoogleMapsDirectionApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/GoogleMapsDirectionApp.java @@ -4,6 +4,7 @@ import cgeo.geocaching.IGeoData; import cgeo.geocaching.R; import cgeo.geocaching.cgeoapplication; import cgeo.geocaching.geopoint.Geopoint; +import cgeo.geocaching.maps.MapProviderFactory; import cgeo.geocaching.utils.Log; import android.app.Activity; @@ -18,7 +19,7 @@ public class GoogleMapsDirectionApp extends AbstractPointNavigationApp { @Override public boolean isInstalled() { - return true; + return MapProviderFactory.isGoogleMapsInstalled(); } @Override diff --git a/main/src/cgeo/geocaching/maps/MapProviderFactory.java b/main/src/cgeo/geocaching/maps/MapProviderFactory.java index cb1f87f..483189f 100644 --- a/main/src/cgeo/geocaching/maps/MapProviderFactory.java +++ b/main/src/cgeo/geocaching/maps/MapProviderFactory.java @@ -23,7 +23,7 @@ public class MapProviderFactory { MapsforgeMapProvider.getInstance(); } - private static boolean isGoogleMapsInstalled() { + public static boolean isGoogleMapsInstalled() { boolean googleMaps = true; try { Class.forName("com.google.android.maps.MapActivity"); |
