aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/MainActivity.java
diff options
context:
space:
mode:
authormucek4 <tomaz@gorenc.org>2013-09-04 10:44:53 +0200
committermucek4 <tomaz@gorenc.org>2013-09-04 10:44:53 +0200
commitbd09f1887a8e6a8e9b919d4605c04155a3e73760 (patch)
tree29e65f4b81e983300f080a3509ee982576bfeb14 /main/src/cgeo/geocaching/MainActivity.java
parent8fe25127326d3b29d53cd3ef663aa6e46241fcbc (diff)
downloadcgeo-bd09f1887a8e6a8e9b919d4605c04155a3e73760.zip
cgeo-bd09f1887a8e6a8e9b919d4605c04155a3e73760.tar.gz
cgeo-bd09f1887a8e6a8e9b919d4605c04155a3e73760.tar.bz2
Fix 2830 Browse PQs as nearby search
Diffstat (limited to 'main/src/cgeo/geocaching/MainActivity.java')
-rw-r--r--main/src/cgeo/geocaching/MainActivity.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/MainActivity.java b/main/src/cgeo/geocaching/MainActivity.java
index b6f267a..1b9fe46 100644
--- a/main/src/cgeo/geocaching/MainActivity.java
+++ b/main/src/cgeo/geocaching/MainActivity.java
@@ -511,6 +511,23 @@ public class MainActivity extends AbstractActivity {
}
});
nearestView.setBackgroundResource(R.drawable.main_nearby);
+
+ nearestView.setOnLongClickListener(new View.OnLongClickListener() {
+
+ @Override
+ public boolean onLongClick(View v) {
+ new PocketQueryList.UserInterface(MainActivity.this).promptForListSelection(new RunnableWithArgument<PocketQueryList>() {
+
+ @Override
+ public void run(PocketQueryList pql) {
+ cgeocaches.startActivityPocket(MainActivity.this, pql.getGuid(), pql.getName());
+ }
+ });
+ return true;
+ }
+ });
+ nearestView.setLongClickable(true);
+
}
navType.setText(res.getString(geo.getLocationProvider().resourceId));