diff options
Diffstat (limited to 'main/src/cgeo/geocaching/ui')
-rw-r--r-- | main/src/cgeo/geocaching/ui/CacheListAdapter.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheListAdapter.java b/main/src/cgeo/geocaching/ui/CacheListAdapter.java index 2735a94..9f2d69d 100644 --- a/main/src/cgeo/geocaching/ui/CacheListAdapter.java +++ b/main/src/cgeo/geocaching/ui/CacheListAdapter.java @@ -856,4 +856,17 @@ public class CacheListAdapter extends ArrayAdapter<cgCache> { public List<cgCache> getFilteredList() { return list; } + + public List<cgCache> getCheckedCaches() { + ArrayList<cgCache> result = new ArrayList<cgCache>(); + int checked = getChecked(); + if (checked > 0) { + for (cgCache cache : list) { + if (cache.isStatusChecked()) { + result.add(cache); + } + } + } + return result; + } } |