aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Jacob <mjacob@union06.de>2012-05-16 22:29:35 +0200
committerMarco Jacob <mjacob@union06.de>2012-05-16 22:29:35 +0200
commit4555779b15f0ad8c96736a88a2a521cf04868e28 (patch)
treefeb119860ad6fd44dbb2d99a511207c9bae1baec
parent1fb54eca9e977c443b30ae49fd3622fa467d2c8b (diff)
downloadcgeo-4555779b15f0ad8c96736a88a2a521cf04868e28.zip
cgeo-4555779b15f0ad8c96736a88a2a521cf04868e28.tar.gz
cgeo-4555779b15f0ad8c96736a88a2a521cf04868e28.tar.bz2
corrected isEnabled(Geopoint) default to geopoint!=null
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java2
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java5
2 files changed, 2 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 979a030..ecfb068 100644
--- a/main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java
+++ b/main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java
@@ -21,6 +21,6 @@ abstract class AbstractNavigationApp extends AbstractApp implements NavigationAp
@Override
public boolean isEnabled(Geopoint geopoint) {
- return true;
+ 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 a46ae2c..98be63a 100644
--- a/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java
+++ b/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java
@@ -70,10 +70,7 @@ abstract class AbstractStaticMapsApp extends AbstractNavigationApp {
@Override
public boolean isEnabled(Geopoint geopoint) {
- if (geopoint == null) {
- return true;
- }
- return false;
+ return geopoint == null;
}
}