diff options
Diffstat (limited to 'main/src/cgeo/geocaching/maps/CGeoMap.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 81fd510..79ea44a 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -598,10 +598,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto item = menu.findItem(MENU_MAP_LIVE); // live map if (mapMode == MapMode.LIVE_ONLINE) { item.setTitle(res.getString(R.string.map_live_disable)); - } else if (mapMode == MapMode.LIVE_OFFLINE) { - item.setTitle(res.getString(R.string.map_live_enable)); } else { - item.setEnabled(false); item.setTitle(res.getString(R.string.map_live_enable)); } @@ -1088,7 +1085,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto showProgressHandler.sendEmptyMessage(SHOW_PROGRESS); loadThreadRun = System.currentTimeMillis(); - SearchResult searchResult = null; + SearchResult searchResult; // stage 1 - pull and render from the DB only for live map if (mapMode == MapMode.LIVE_ONLINE) { searchResult = new SearchResult(app.getCachedInViewport(viewport, Settings.getCacheType())); @@ -1165,7 +1162,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto showProgressHandler.sendEmptyMessage(SHOW_PROGRESS); // show progress int count = 0; - SearchResult searchResult = null; + SearchResult searchResult; do { if (tokens == null) { |
