aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/Geocache.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-05-17 08:51:24 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-05-17 08:51:24 +0200
commit496878826d638367c129b02e66f992202e0d36c9 (patch)
tree12b5932c47a90baa20c7f66770a11affc8cad4ba /main/src/cgeo/geocaching/Geocache.java
parent2b2753afb1a0bf528315ea2b3efa9dc61a5e6bdf (diff)
downloadcgeo-496878826d638367c129b02e66f992202e0d36c9.zip
cgeo-496878826d638367c129b02e66f992202e0d36c9.tar.gz
cgeo-496878826d638367c129b02e66f992202e0d36c9.tar.bz2
fix #3255: don't ask for list when storing from history
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
-rw-r--r--main/src/cgeo/geocaching/Geocache.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index a88ceca..fdfdbb5 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -1496,19 +1496,19 @@ public class Geocache implements ICache, IWaypoint {
}
}
- public Subscription refresh(final int newListId, final CancellableHandler handler, final Scheduler scheduler) {
+ public Subscription refresh(final CancellableHandler handler, final Scheduler scheduler) {
return scheduler.createWorker().schedule(new Action0() {
@Override
public void call() {
- refreshSynchronous(newListId, handler);
+ refreshSynchronous(handler);
handler.sendEmptyMessage(CancellableHandler.DONE);
}
});
}
- public void refreshSynchronous(final int newListId, final CancellableHandler handler) {
+ public void refreshSynchronous(final CancellableHandler handler) {
DataStore.removeCache(geocode, EnumSet.of(RemoveFlag.REMOVE_CACHE));
- storeCache(null, geocode, newListId, true, handler);
+ storeCache(null, geocode, listId, true, handler);
}
public static void storeCache(Geocache origCache, String geocode, int listId, boolean forceRedownload, CancellableHandler handler) {