aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/cgeo/geocaching/apps/AbstractApp.java2
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java4
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java2
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/LocusApp.java4
4 files changed, 6 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/apps/AbstractApp.java b/main/src/cgeo/geocaching/apps/AbstractApp.java
index e93b722..2023823 100644
--- a/main/src/cgeo/geocaching/apps/AbstractApp.java
+++ b/main/src/cgeo/geocaching/apps/AbstractApp.java
@@ -61,6 +61,6 @@ public abstract class AbstractApp implements App {
@Override
public boolean isEnabled(cgCache cache) {
- return true;
+ return cache != null;
}
}
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;
}
}