diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 14:01:53 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 14:09:46 +0100 |
| commit | 4fde6849e36a74b0dfc6f725bee9e642f5c02d9c (patch) | |
| tree | c90c6b170ba4ec68b3beadc22df4ece6b9df86e6 /main/src/cgeo/geocaching/maps/CGeoMap.java | |
| parent | 99e9d48ce7773f18aaa83e34d8cf18b4bbf5dbfc (diff) | |
| download | cgeo-4fde6849e36a74b0dfc6f725bee9e642f5c02d9c.zip cgeo-4fde6849e36a74b0dfc6f725bee9e642f5c02d9c.tar.gz cgeo-4fde6849e36a74b0dfc6f725bee9e642f5c02d9c.tar.bz2 | |
Use RxJava.Action1 instead of our RunnableWithArgument
Diffstat (limited to 'main/src/cgeo/geocaching/maps/CGeoMap.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 65d8861..722b3eb 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -38,11 +38,11 @@ import cgeo.geocaching.utils.CancellableHandler; import cgeo.geocaching.utils.GeoDirHandler; import cgeo.geocaching.utils.LeastRecentlyUsedSet; import cgeo.geocaching.utils.Log; -import cgeo.geocaching.utils.RunnableWithArgument; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.HashCodeBuilder; +import rx.util.functions.Action1; import android.app.Activity; import android.app.AlertDialog; @@ -661,9 +661,9 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto if (Settings.getChooseList()) { // let user select list to store cache in new StoredList.UserInterface(activity).promptForListSelection(R.string.list_title, - new RunnableWithArgument<Integer>() { + new Action1<Integer>() { @Override - public void run(final Integer selectedListId) { + public void call(final Integer selectedListId) { storeCaches(geocodes, selectedListId); } }, true, StoredList.TEMPORARY_LIST_ID); |
