diff options
author | Marco Jacob <mjacob@union06.de> | 2012-05-16 22:29:35 +0200 |
---|---|---|
committer | Marco Jacob <mjacob@union06.de> | 2012-05-16 22:29:35 +0200 |
commit | 4555779b15f0ad8c96736a88a2a521cf04868e28 (patch) | |
tree | feb119860ad6fd44dbb2d99a511207c9bae1baec /main/src/cgeo/geocaching/apps/cache | |
parent | 1fb54eca9e977c443b30ae49fd3622fa467d2c8b (diff) | |
download | cgeo-4555779b15f0ad8c96736a88a2a521cf04868e28.zip cgeo-4555779b15f0ad8c96736a88a2a521cf04868e28.tar.gz cgeo-4555779b15f0ad8c96736a88a2a521cf04868e28.tar.bz2 |
corrected isEnabled(Geopoint) default to geopoint!=null
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache')
-rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/AbstractNavigationApp.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java | 5 |
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; } } |