aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-06-05 11:31:57 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-06-05 11:31:57 +0200
commitc33e0c4fa198b1a2934a6bc11066bc13bd2bc7f5 (patch)
treef8613d69e78ea212f9efee1ae43e45e6be36ed1c /main
parent69e2e30fb0c96b8ff3f911ecd55ed41c3a62825f (diff)
downloadcgeo-c33e0c4fa198b1a2934a6bc11066bc13bd2bc7f5.zip
cgeo-c33e0c4fa198b1a2934a6bc11066bc13bd2bc7f5.tar.gz
cgeo-c33e0c4fa198b1a2934a6bc11066bc13bd2bc7f5.tar.bz2
Do not try to hide a menu item that is not displayed
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index fe719ea..45c54aa 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -830,8 +830,8 @@ public class cgeocaches extends AbstractListActivity {
if (type == CacheListType.OFFLINE) { // only offline list
setMenuItemLabel(menu, MENU_DROP_CACHES, R.string.caches_drop_selected, R.string.caches_drop_all);
- menu.findItem(MENU_DROP_CACHES_AND_LIST).setVisible(!hasSelection && isNonDefaultList && !adapter.isFiltered());
if (isConcreteList()) {
+ menu.findItem(MENU_DROP_CACHES_AND_LIST).setVisible(!hasSelection && isNonDefaultList && !adapter.isFiltered());
setMenuItemLabel(menu, MENU_REFRESH_STORED, R.string.caches_refresh_selected, R.string.caches_refresh_all);
}
setMenuItemLabel(menu, MENU_MOVE_TO_LIST, R.string.caches_move_selected, R.string.caches_move_all);