diff options
author | campbeb <bpcampbell@gmail.com> | 2012-07-11 19:29:39 +0900 |
---|---|---|
committer | campbeb <bpcampbell@gmail.com> | 2012-07-11 19:47:17 +0900 |
commit | 4cacb57907f4f3c661bb870423d7a362e80e70ba (patch) | |
tree | 2a0597d94a6031e766452ce1e3adafcfe9fdb400 /main/src/cgeo/geocaching | |
parent | 231737105d912e2e020baa8e78c659f6e8b43342 (diff) | |
download | cgeo-4cacb57907f4f3c661bb870423d7a362e80e70ba.zip cgeo-4cacb57907f4f3c661bb870423d7a362e80e70ba.tar.gz cgeo-4cacb57907f4f3c661bb870423d7a362e80e70ba.tar.bz2 |
Allow Store for Offline from map for list of caches
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index cf90430..c4c2dc7 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -193,7 +193,6 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto /**Controls the map behaviour*/ private MapMode mapMode = null; // other things - // private boolean live = true; // live map (live, dead) or rest (displaying caches on map) private boolean liveChanged = false; // previous state for loadTimer private boolean centered = false; // if map is already centered private boolean alreadyCentered = false; // -""- for setting my location @@ -608,7 +607,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto } final Set<String> geocodesInViewport = getGeocodesForCachesInViewport(); - menu.findItem(MENU_STORE_CACHES).setEnabled(isLiveMode() && !isLoading() && CollectionUtils.isNotEmpty(geocodesInViewport) && app.hasUnsavedCaches(new SearchResult(geocodesInViewport))); + menu.findItem(MENU_STORE_CACHES).setEnabled(!isLoading() && CollectionUtils.isNotEmpty(geocodesInViewport) && app.hasUnsavedCaches(new SearchResult(geocodesInViewport))); item = menu.findItem(MENU_CIRCLE_MODE); // show circles if (overlayCaches != null && overlayCaches.getCircles()) { @@ -617,12 +616,11 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto item.setTitle(res.getString(R.string.map_circles_show)); } - item = menu.findItem(MENU_AS_LIST); - item.setEnabled(isLiveMode() && !isLoading()); + menu.findItem(MENU_AS_LIST).setEnabled(isLiveMode() && !isLoading()); menu.findItem(SUBMENU_STRATEGY).setEnabled(isLiveMode()); } catch (Exception e) { - Log.e("cgeomap.onPrepareOptionsMenu: " + e.toString()); + Log.e("cgeomap.onPrepareOptionsMenu: " + e); } return true; |