diff options
author | Bananeweizen <Bananeweizen@gmx.de> | 2012-05-19 12:09:43 +0200 |
---|---|---|
committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-05-19 12:09:43 +0200 |
commit | 887d276a81353838517757208a366ebac95f6773 (patch) | |
tree | 216406d4c6cc6e42149afb9898bdff6139694315 /main/src/cgeo/geocaching/apps/cache | |
parent | 75e09e254cb2d5338e16b311ce9be376ddab62a9 (diff) | |
download | cgeo-887d276a81353838517757208a366ebac95f6773.zip cgeo-887d276a81353838517757208a366ebac95f6773.tar.gz cgeo-887d276a81353838517757208a366ebac95f6773.tar.bz2 |
reafactoring: enablement of navigation apps
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache')
3 files changed, 5 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java b/main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java index 8cb86e7..27cb47c 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java @@ -16,11 +16,11 @@ abstract class AbstractNavigationApp extends AbstractApp implements NavigationAp @Override public boolean isEnabled(cgWaypoint waypoint) { - return true; + return waypoint != null; } @Override public boolean isEnabled(Geopoint geopoint) { - return false; + return geopoint != null; } } diff --git a/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java b/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java index 23cb982..ff61404 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java @@ -60,7 +60,7 @@ abstract class AbstractStaticMapsApp extends AbstractNavigationApp { @Override public boolean isEnabled(Geopoint geopoint) { - return geopoint == null; + return false; } } diff --git a/main/src/cgeo/geocaching/apps/cache/navi/LocusApp.java b/main/src/cgeo/geocaching/apps/cache/navi/LocusApp.java index b9d818d..270135e 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/LocusApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/LocusApp.java @@ -38,11 +38,11 @@ class LocusApp extends AbstractLocusApp implements NavigationApp { @Override public boolean isEnabled(cgWaypoint waypoint) { - return true; + return waypoint != null; } @Override public boolean isEnabled(Geopoint geopoint) { - return true; + return geopoint != null; } } |