aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/CachePopup.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-05-12 17:53:01 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-05-13 07:33:03 +0200
commit37774fbe5fbe6a0900207309747c6b01fcfa2753 (patch)
treef447603ddf9dbbd9ff8c4200094172264fd8eb5f /main/src/cgeo/geocaching/CachePopup.java
parent29d6e9e4bb286f4bbe4ba5166ad8886d241e5f4f (diff)
downloadcgeo-37774fbe5fbe6a0900207309747c6b01fcfa2753.zip
cgeo-37774fbe5fbe6a0900207309747c6b01fcfa2753.tar.gz
cgeo-37774fbe5fbe6a0900207309747c6b01fcfa2753.tar.bz2
Upgrade to RxJava 0.18.3 and use the new Scheduler interface
Diffstat (limited to 'main/src/cgeo/geocaching/CachePopup.java')
-rw-r--r--main/src/cgeo/geocaching/CachePopup.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/CachePopup.java b/main/src/cgeo/geocaching/CachePopup.java
index 543be22..f91d275 100644
--- a/main/src/cgeo/geocaching/CachePopup.java
+++ b/main/src/cgeo/geocaching/CachePopup.java
@@ -11,7 +11,7 @@ import cgeo.geocaching.utils.CancellableHandler;
import cgeo.geocaching.utils.Log;
import org.apache.commons.lang3.StringUtils;
-import rx.Scheduler.Inner;
+import rx.functions.Action0;
import rx.functions.Action1;
import rx.schedulers.Schedulers;
@@ -126,9 +126,9 @@ public class CachePopup extends AbstractPopupActivity {
protected void storeCache(final int listId) {
final StoreCacheHandler storeCacheHandler = new StoreCacheHandler(R.string.cache_dialog_offline_save_message);
progress.show(CachePopup.this, res.getString(R.string.cache_dialog_offline_save_title), res.getString(R.string.cache_dialog_offline_save_message), true, storeCacheHandler.cancelMessage());
- Schedulers.io().schedule(new Action1<Inner>() {
+ Schedulers.io().createWorker().schedule(new Action0() {
@Override
- public void call(final Inner inner) {
+ public void call() {
cache.store(listId, storeCacheHandler);
invalidateOptionsMenuCompatible();
}