aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-01-07 20:32:44 +0100
committerBananeweizen <bananeweizen@gmx.de>2013-01-07 20:32:44 +0100
commit3f0fdd2b52bd96fbe7693cf92e87e78e379799d3 (patch)
treeabebd4c92d262899c6ba5b3561ac14418491f8b3 /main/src
parentb6131b01e2753fc0f9df33bcd9ee565f08739cfe (diff)
downloadcgeo-3f0fdd2b52bd96fbe7693cf92e87e78e379799d3.zip
cgeo-3f0fdd2b52bd96fbe7693cf92e87e78e379799d3.tar.gz
cgeo-3f0fdd2b52bd96fbe7693cf92e87e78e379799d3.tar.bz2
fix #2351: always enable move to list
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 024b39d..aa4c89e 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -280,7 +280,7 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
};
/**
- * Loads the caches and fills the cachelist according to {@link #search} content.
+ * Loads the caches and fills the {@link #cacheList} according to {@link #search} content.
*
* If {@link #search} is <code>null</code>, this does nothing.
*/
@@ -292,7 +292,7 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
@Override
public void run() {
cacheList.clear();
- cacheList.addAll((Set<cgCache>) cachesFromSearchResult);
+ cacheList.addAll(cachesFromSearchResult);
adapter.reFilter();
updateTitle();
showFooterMoreCaches();
@@ -791,7 +791,7 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
}
item = menu.findItem(MENU_MOVE_TO_LIST);
if (item != null) {
- item.setVisible(multipleLists && !isEmpty);
+ item.setVisible(!isEmpty);
}
setMenuItemLabel(menu, MENU_REMOVE_FROM_HISTORY, R.string.cache_remove_from_history, R.string.cache_clear_history);
@@ -967,10 +967,7 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
}
if (cache.isOffline()) {
menu.add(0, MENU_DROP_CACHE, 0, res.getString(R.string.cache_offline_drop));
- final List<StoredList> cacheLists = cgData.getLists();
- if (cacheLists.size() > 1) {
- menu.add(0, MENU_MOVE_TO_LIST, 0, res.getString(R.string.cache_menu_move_list));
- }
+ menu.add(0, MENU_MOVE_TO_LIST, 0, res.getString(R.string.cache_menu_move_list));
menu.add(0, MENU_EXPORT, 0, res.getString(R.string.export));
}
else {