diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-06-09 21:40:53 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-06-09 21:53:18 +0200 |
| commit | c87fc7a6b372539e1e084eb5e50edb7d8e340852 (patch) | |
| tree | cafbe6d4107a1645b84d8612d7a9219a99e1ec7b /main/src/cgeo/geocaching/PocketQueryList.java | |
| parent | b0fc0af35e8fba289e38d06e5536135b4e5b36a6 (diff) | |
| download | cgeo-c87fc7a6b372539e1e084eb5e50edb7d8e340852.zip cgeo-c87fc7a6b372539e1e084eb5e50edb7d8e340852.tar.gz cgeo-c87fc7a6b372539e1e084eb5e50edb7d8e340852.tar.bz2 | |
Upgrade RxJava to version 0.19
Diffstat (limited to 'main/src/cgeo/geocaching/PocketQueryList.java')
| -rw-r--r-- | main/src/cgeo/geocaching/PocketQueryList.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/PocketQueryList.java b/main/src/cgeo/geocaching/PocketQueryList.java index 2ac137f..4e84881 100644 --- a/main/src/cgeo/geocaching/PocketQueryList.java +++ b/main/src/cgeo/geocaching/PocketQueryList.java @@ -52,13 +52,13 @@ public final class PocketQueryList { subscriber.onNext(GCParser.searchPocketQueryList()); subscriber.onCompleted(); } - })).subscribe(new Action1<List<PocketQueryList>>() { + })).subscribeOn(Schedulers.io()).subscribe(new Action1<List<PocketQueryList>>() { @Override public void call(final List<PocketQueryList> pocketQueryLists) { waitDialog.dismiss(); selectFromPocketQueries(activity, pocketQueryLists, runAfterwards); } - }, Schedulers.io()); + }); } private static void selectFromPocketQueries(final Activity activity, final List<PocketQueryList> pocketQueryList, final Action1<PocketQueryList> runAfterwards) { if (CollectionUtils.isEmpty(pocketQueryList)) { |
