aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps/cache
diff options
context:
space:
mode:
authorTorsten Keil <github@torsten-keil.net>2012-02-03 01:12:59 +0100
committerTorsten Keil <github@torsten-keil.net>2012-02-03 01:12:59 +0100
commitf80652303c09c112cc1759d75a10c766eacc7568 (patch)
treef58b3686c5868b239691af6c97afcf856baf72f0 /main/src/cgeo/geocaching/apps/cache
parentbedaf58bc5bf9bb74d7f2d8985752421ffd69b6c (diff)
downloadcgeo-f80652303c09c112cc1759d75a10c766eacc7568.zip
cgeo-f80652303c09c112cc1759d75a10c766eacc7568.tar.gz
cgeo-f80652303c09c112cc1759d75a10c766eacc7568.tar.bz2
Temporarily removed offline check for static maps filtering ... isn't
working correct yet
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache')
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java b/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java
index 6053948..9ac752f 100644
--- a/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java
+++ b/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java
@@ -6,7 +6,6 @@ import cgeo.geocaching.Settings;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgGeo;
import cgeo.geocaching.cgWaypoint;
-import cgeo.geocaching.cgeoapplication;
import cgeo.geocaching.apps.AbstractAppFactory;
import cgeo.geocaching.geopoint.Geopoint;
@@ -114,11 +113,11 @@ public final class NavigationAppFactory extends AbstractAppFactory {
builder.setIcon(android.R.drawable.ic_menu_mapmode);
final List<NavigationAppsEnum> items = new ArrayList<NavigationAppFactory.NavigationAppsEnum>();
final int defaultNavigationTool = Settings.getDefaultNavigationTool();
- final boolean isOffline = cache != null ? cgeoapplication.getInstance().isOffline(cache.getGeocode(), null) : false;
+// final boolean isOffline = cache != null ? cgeoapplication.getInstance().isOffline(cache.getGeocode(), null) : false;
+ // (isOffline && NavigationAppsEnum.STATIC_MAP.id == navApp.id) <== must be changed, isn't working for waypoints for example
for (NavigationAppsEnum navApp : getInstalledNavigationApps(activity)) {
if ((showInternalMap || !(navApp.app instanceof InternalMap)) &&
- (showDefaultNavigation || defaultNavigationTool != navApp.id) &&
- (isOffline && NavigationAppsEnum.STATIC_MAP.id == navApp.id)) {
+ (showDefaultNavigation || defaultNavigationTool != navApp.id)) {
items.add(navApp);
}
}