diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-02-03 14:40:52 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-02-03 14:45:35 +0100 |
| commit | 5ddc2beec34023b94b0f3f6489dc16ba40271e4c (patch) | |
| tree | 5e019b8745f3741e3d59e6562ba9a6719261c143 /main/src/cgeo/geocaching/connector | |
| parent | 0f2eb5549ee2177ba1725213804dd712b740ef0b (diff) | |
| download | cgeo-5ddc2beec34023b94b0f3f6489dc16ba40271e4c.zip cgeo-5ddc2beec34023b94b0f3f6489dc16ba40271e4c.tar.gz cgeo-5ddc2beec34023b94b0f3f6489dc16ba40271e4c.tar.bz2 | |
Restrict LazyInitializedList to the List interface
This way, we can use various types of list at various places without
specifically needing a LazyInitializedList.
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
| -rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCParser.java | 2 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/connector/oc/OC11XMLParser.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index b54e00c..2117053 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -1631,7 +1631,7 @@ public abstract class GCParser { //cache.setLogs(loadLogsFromDetails(page, cache, false)); if (Settings.isFriendLogsWanted()) { CancellableHandler.sendLoadProgressDetail(handler, R.string.cache_dialog_loading_details_status_logs); - LazyInitializedList<LogEntry> allLogs = cache.getLogs(); + List<LogEntry> allLogs = cache.getLogs(); List<LogEntry> friendLogs = loadLogsFromDetails(page, cache, true, false); if (friendLogs != null) { for (LogEntry log : friendLogs) { diff --git a/main/src/cgeo/geocaching/connector/oc/OC11XMLParser.java b/main/src/cgeo/geocaching/connector/oc/OC11XMLParser.java index 5cba53d..ec53a7f 100644 --- a/main/src/cgeo/geocaching/connector/oc/OC11XMLParser.java +++ b/main/src/cgeo/geocaching/connector/oc/OC11XMLParser.java @@ -517,7 +517,7 @@ public class OC11XMLParser { final Geocache cache = caches.get(logHolder.cacheId); if (cache != null && logHolder.logEntry.type != LogType.UNKNOWN) { logs.put(logHolder.id, logHolder.logEntry); - cache.getLogs().prepend(logHolder.logEntry); + cache.getLogs().add(0, logHolder.logEntry); if (logHolder.logEntry.type == LogType.FOUND_IT && StringUtils.equalsIgnoreCase(logHolder.logEntry.author, Settings.getOCConnectorUserName())) { cache.setFound(true); |
