aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/CachePopup.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-01-11 14:01:53 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-01-11 14:09:46 +0100
commit4fde6849e36a74b0dfc6f725bee9e642f5c02d9c (patch)
treec90c6b170ba4ec68b3beadc22df4ece6b9df86e6 /main/src/cgeo/geocaching/CachePopup.java
parent99e9d48ce7773f18aaa83e34d8cf18b4bbf5dbfc (diff)
downloadcgeo-4fde6849e36a74b0dfc6f725bee9e642f5c02d9c.zip
cgeo-4fde6849e36a74b0dfc6f725bee9e642f5c02d9c.tar.gz
cgeo-4fde6849e36a74b0dfc6f725bee9e642f5c02d9c.tar.bz2
Use RxJava.Action1 instead of our RunnableWithArgument
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 9186497..5d04ab0 100644
--- a/main/src/cgeo/geocaching/CachePopup.java
+++ b/main/src/cgeo/geocaching/CachePopup.java
@@ -9,9 +9,9 @@ import cgeo.geocaching.settings.Settings;
import cgeo.geocaching.ui.CacheDetailsCreator;
import cgeo.geocaching.utils.CancellableHandler;
import cgeo.geocaching.utils.Log;
-import cgeo.geocaching.utils.RunnableWithArgument;
import org.apache.commons.lang3.StringUtils;
+import rx.util.functions.Action1;
import android.content.Context;
import android.content.Intent;
@@ -110,9 +110,9 @@ public class CachePopup extends AbstractPopupActivity {
if (Settings.getChooseList()) {
// let user select list to store cache in
new StoredList.UserInterface(CachePopup.this).promptForListSelection(R.string.list_title,
- new RunnableWithArgument<Integer>() {
+ new Action1<Integer>() {
@Override
- public void run(final Integer selectedListId) {
+ public void call(final Integer selectedListId) {
storeCache(selectedListId);
}
}, true, StoredList.TEMPORARY_LIST_ID);