diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-06-05 11:31:57 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-06-05 11:31:57 +0200 |
commit | c33e0c4fa198b1a2934a6bc11066bc13bd2bc7f5 (patch) | |
tree | f8613d69e78ea212f9efee1ae43e45e6be36ed1c /main | |
parent | 69e2e30fb0c96b8ff3f911ecd55ed41c3a62825f (diff) | |
download | cgeo-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.java | 2 |
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); |