diff options
| author | Torsten Keil <github@torsten-keil.net> | 2012-01-08 22:47:52 +0100 |
|---|---|---|
| committer | Torsten Keil <github@torsten-keil.net> | 2012-01-08 22:47:52 +0100 |
| commit | 05b527ae7f4de56dff5f560e26a5ce7fb307db0d (patch) | |
| tree | 22fadf756f0c38ad68d68872f786684e89b88bfd /main/src | |
| parent | 64416e9e78fb33c61f1d41d7d6d0b59c08bab7bb (diff) | |
| download | cgeo-05b527ae7f4de56dff5f560e26a5ce7fb307db0d.zip cgeo-05b527ae7f4de56dff5f560e26a5ce7fb307db0d.tar.gz cgeo-05b527ae7f4de56dff5f560e26a5ce7fb307db0d.tar.bz2 | |
simplified expression
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/cgeowaypoint.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeowaypoint.java b/main/src/cgeo/geocaching/cgeowaypoint.java index e2d544b..3d35189 100644 --- a/main/src/cgeo/geocaching/cgeowaypoint.java +++ b/main/src/cgeo/geocaching/cgeowaypoint.java @@ -234,7 +234,7 @@ public class cgeowaypoint extends AbstractActivity { menu.findItem(MENU_ID_DEFAULT_NAVIGATION).setVisible(visible); menu.findItem(MENU_ID_CACHES_AROUND).setVisible(visible); - boolean openGeocache = StringUtils.isEmpty(geocode) && !StringUtils.isEmpty(waypoint.getGeocode()); + boolean openGeocache = StringUtils.isEmpty(geocode) && StringUtils.isNotEmpty(waypoint.getGeocode()); menu.findItem(MENU_ID_OPEN_GEOCACHE).setVisible(openGeocache); } catch (Exception e) { // nothing |
