diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-05-04 12:30:47 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-05-04 12:30:47 +0200 |
| commit | 31632416b2ff724488b0c9eeb09a92d2b37f0e17 (patch) | |
| tree | 969441e910f951999ed7a984d03fca80f0e7c0bb /main/src/cgeo/geocaching/StoredList.java | |
| parent | 79439277f0f1f62dcd39d40a3a457232cbaafb41 (diff) | |
| download | cgeo-31632416b2ff724488b0c9eeb09a92d2b37f0e17.zip cgeo-31632416b2ff724488b0c9eeb09a92d2b37f0e17.tar.gz cgeo-31632416b2ff724488b0c9eeb09a92d2b37f0e17.tar.bz2 | |
fix #2683: Enable GPX import in all lists
Diffstat (limited to 'main/src/cgeo/geocaching/StoredList.java')
| -rw-r--r-- | main/src/cgeo/geocaching/StoredList.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/StoredList.java b/main/src/cgeo/geocaching/StoredList.java index 778c112..c505e3c 100644 --- a/main/src/cgeo/geocaching/StoredList.java +++ b/main/src/cgeo/geocaching/StoredList.java @@ -201,4 +201,14 @@ public class StoredList { protected String getTitle() { return title; } + + /** + * Return the given list, if it is a concrete list. Return the default list otherwise. + */ + public static int getConcreteList(int listId) { + if (listId == ALL_LIST_ID || listId == TEMPORARY_LIST_ID) { + return STANDARD_LIST_ID; + } + return listId; + } } |
