aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/MainActivity.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/MainActivity.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/MainActivity.java')
-rw-r--r--main/src/cgeo/geocaching/MainActivity.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/MainActivity.java b/main/src/cgeo/geocaching/MainActivity.java
index 1be09bd..dfe2f50 100644
--- a/main/src/cgeo/geocaching/MainActivity.java
+++ b/main/src/cgeo/geocaching/MainActivity.java
@@ -19,7 +19,6 @@ import cgeo.geocaching.ui.dialog.Dialogs;
import cgeo.geocaching.utils.DatabaseBackupUtils;
import cgeo.geocaching.utils.GeoDirHandler;
import cgeo.geocaching.utils.Log;
-import cgeo.geocaching.utils.RunnableWithArgument;
import cgeo.geocaching.utils.Version;
import com.google.zxing.integration.android.IntentIntegrator;
@@ -299,10 +298,10 @@ public class MainActivity extends AbstractActivity {
if (!Settings.isGCPremiumMember()) {
return true;
}
- PocketQueryList.promptForListSelection(this, new RunnableWithArgument<PocketQueryList>() {
+ PocketQueryList.promptForListSelection(this, new Action1<PocketQueryList>() {
@Override
- public void run(final PocketQueryList pql) {
+ public void call(final PocketQueryList pql) {
CacheListActivity.startActivityPocket(MainActivity.this, pql);
}
});
@@ -375,10 +374,10 @@ public class MainActivity extends AbstractActivity {
@Override
public boolean onLongClick(final View v) {
- new StoredList.UserInterface(MainActivity.this).promptForListSelection(R.string.list_title, new RunnableWithArgument<Integer>() {
+ new StoredList.UserInterface(MainActivity.this).promptForListSelection(R.string.list_title, new Action1<Integer>() {
@Override
- public void run(final Integer selectedListId) {
+ public void call(final Integer selectedListId) {
Settings.saveLastList(selectedListId);
CacheListActivity.startActivityOffline(MainActivity.this);
}