diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-02-16 12:38:52 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-02-16 22:19:43 +0100 |
| commit | 14ba161b7507480630d8ca9220e1b4099fc7d4d6 (patch) | |
| tree | 4440aa6a9c7bb40a8e75f64e1687acba3489f855 /main/src/cgeo/geocaching/utils | |
| parent | 2919930439a3ff43efada3bcb5af34979fb8feac (diff) | |
| download | cgeo-14ba161b7507480630d8ca9220e1b4099fc7d4d6.zip cgeo-14ba161b7507480630d8ca9220e1b4099fc7d4d6.tar.gz cgeo-14ba161b7507480630d8ca9220e1b4099fc7d4d6.tar.bz2 | |
Update for RxJava 0.17.0-RC1
This is the release candidate version, which is being currently tested
at Netflix. In a few days, I'll update with the final version.
This release cleans up some bits of RxJava by integrating the
subscription inside a subscriber (which is an observer holding a
subscription) and fixes a leak with recurring tasks.
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
| -rw-r--r-- | main/src/cgeo/geocaching/utils/GeoDirHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/utils/GeoDirHandler.java b/main/src/cgeo/geocaching/utils/GeoDirHandler.java index 64806e8..1ccc4f7 100644 --- a/main/src/cgeo/geocaching/utils/GeoDirHandler.java +++ b/main/src/cgeo/geocaching/utils/GeoDirHandler.java @@ -4,10 +4,10 @@ import cgeo.geocaching.CgeoApplication; import cgeo.geocaching.IGeoData; import cgeo.geocaching.settings.Settings; +import rx.Scheduler; import rx.Subscription; import rx.android.schedulers.AndroidSchedulers; import rx.schedulers.Schedulers; -import rx.util.functions.Action0; import rx.util.functions.Action1; import java.util.concurrent.TimeUnit; @@ -100,9 +100,9 @@ public abstract class GeoDirHandler { if (geoSubscription != null) { final Subscription subscription = geoSubscription; geoSubscription = null; - Schedulers.newThread().schedule(new Action0() { + Schedulers.newThread().schedule(new Action1<Scheduler.Inner>() { @Override - public void call() { + public void call(final Scheduler.Inner inner) { subscription.unsubscribe(); } }, 2500, TimeUnit.MILLISECONDS); |
