diff options
| -rw-r--r-- | main/src/cgeo/geocaching/cgeo.java | 32 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeoabout.java | 32 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeocaches.java | 8 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeodetail.java | 4 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeohelpers.java | 16 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeoinit.java | 8 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeopopup.java | 4 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeowaypoint.java | 4 |
8 files changed, 108 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java index 404effa..66f7340 100644 --- a/main/src/cgeo/geocaching/cgeo.java +++ b/main/src/cgeo/geocaching/cgeo.java @@ -604,11 +604,19 @@ public class cgeo extends AbstractActivity { } } + /** + * @param v + * unused here but needed since this method is referenced from XML layout + */ public void cgeoFindOnMap(View v) { findViewById(R.id.map).setPressed(true); context.startActivity(new Intent(context, settings.getMapFactory().getMapClass())); } + /** + * @param v + * unused here but needed since this method is referenced from XML layout + */ public void cgeoFindNearest(View v) { if (geo == null) { return; @@ -623,6 +631,10 @@ public class cgeo extends AbstractActivity { context.startActivity(cachesIntent); } + /** + * @param v + * unused here but needed since this method is referenced from XML layout + */ public void cgeoFindByOffline(View v) { findViewById(R.id.search_offline).setPressed(true); final Intent cachesIntent = new Intent(context, cgeocaches.class); @@ -630,16 +642,28 @@ public class cgeo extends AbstractActivity { context.startActivity(cachesIntent); } + /** + * @param v + * unused here but needed since this method is referenced from XML layout + */ public void cgeoSearch(View v) { findViewById(R.id.advanced_button).setPressed(true); context.startActivity(new Intent(context, cgeoadvsearch.class)); } + /** + * @param v + * unused here but needed since this method is referenced from XML layout + */ public void cgeoPoint(View v) { findViewById(R.id.any_button).setPressed(true); context.startActivity(new Intent(context, cgeopoint.class)); } + /** + * @param v + * unused here but needed since this method is referenced from XML layout + */ public void cgeoFilter(View v) { findViewById(R.id.filter_button).setPressed(true); findViewById(R.id.filter_button).performClick(); @@ -755,10 +779,18 @@ public class cgeo extends AbstractActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void showAbout(View view) { context.startActivity(new Intent(context, cgeoabout.class)); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void goSearch(View view) { onSearchRequested(); } diff --git a/main/src/cgeo/geocaching/cgeoabout.java b/main/src/cgeo/geocaching/cgeoabout.java index 41d7230..a335566 100644 --- a/main/src/cgeo/geocaching/cgeoabout.java +++ b/main/src/cgeo/geocaching/cgeoabout.java @@ -52,34 +52,66 @@ public class cgeoabout extends AbstractActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void donateMore(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FMLNN8GXZKJEE"))); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void donateLess(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FMLNN8GXZKJEE"))); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void author(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://carnero.cc/"))); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void support(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("mailto:support@cgeo.org"))); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void website(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.cgeo.org/"))); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void facebook(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/pages/cgeo/297269860090"))); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void twitter(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://twitter.com/android_gc"))); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void nutshellmanual(View view) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.cgeo.org/"))); } diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java index 52d08ce..8707884 100644 --- a/main/src/cgeo/geocaching/cgeocaches.java +++ b/main/src/cgeo/geocaching/cgeocaches.java @@ -2362,6 +2362,10 @@ public class cgeocaches extends AbstractListActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void selectList(View view) { if (type.equals("offline") == false) { return; @@ -2522,6 +2526,10 @@ public class cgeocaches extends AbstractListActivity { alert.show(); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void goMap(View view) { if (searchId == null || CollectionUtils.isEmpty(cacheList)) { showToast(res.getString(R.string.warn_no_cache_coord)); diff --git a/main/src/cgeo/geocaching/cgeodetail.java b/main/src/cgeo/geocaching/cgeodetail.java index fe97146..a3a2020 100644 --- a/main/src/cgeo/geocaching/cgeodetail.java +++ b/main/src/cgeo/geocaching/cgeodetail.java @@ -1912,6 +1912,10 @@ public class cgeodetail extends AbstractActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void goCompass(View view) { if (cache == null || cache.coords == null) { showToast(res.getString(R.string.cache_coordinates_no)); diff --git a/main/src/cgeo/geocaching/cgeohelpers.java b/main/src/cgeo/geocaching/cgeohelpers.java index cc288b1..0fd4e6e 100644 --- a/main/src/cgeo/geocaching/cgeohelpers.java +++ b/main/src/cgeo/geocaching/cgeohelpers.java @@ -38,6 +38,10 @@ public class cgeohelpers extends AbstractActivity { finish(); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void installManual(View view) { final Locale loc = Locale.getDefault(); final String language = loc.getLanguage(); @@ -50,14 +54,26 @@ public class cgeohelpers extends AbstractActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void installLocus(View view) { installFromMarket("menion.android.locus"); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void installGpsStatus(View view) { installFromMarket("com.eclipsim.gpsstatus2"); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void installBluetoothGps(View view) { installFromMarket("googoo.android.btgps"); } diff --git a/main/src/cgeo/geocaching/cgeoinit.java b/main/src/cgeo/geocaching/cgeoinit.java index d237f70..6e5104f 100644 --- a/main/src/cgeo/geocaching/cgeoinit.java +++ b/main/src/cgeo/geocaching/cgeoinit.java @@ -487,6 +487,10 @@ public class cgeoinit extends AbstractActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void backup(View view) { // avoid overwriting an existing backup with an empty database (can happen directly after reinstalling the app) if (app.getAllStoredCachesCount(true, null, null) == 0) { @@ -514,6 +518,10 @@ public class cgeoinit extends AbstractActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void restore(View view) { final boolean status = app.restoreDatabase(); diff --git a/main/src/cgeo/geocaching/cgeopopup.java b/main/src/cgeo/geocaching/cgeopopup.java index 8e04940..c6448d9 100644 --- a/main/src/cgeo/geocaching/cgeopopup.java +++ b/main/src/cgeo/geocaching/cgeopopup.java @@ -643,6 +643,10 @@ public class cgeopopup extends AbstractActivity { detailsList.addView(itemLayout); } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void goCompass(View view) { if (cache == null || cache.coords == null) { showToast(res.getString(R.string.cache_coordinates_no)); diff --git a/main/src/cgeo/geocaching/cgeowaypoint.java b/main/src/cgeo/geocaching/cgeowaypoint.java index 5951e47..5f3c7e8 100644 --- a/main/src/cgeo/geocaching/cgeowaypoint.java +++ b/main/src/cgeo/geocaching/cgeowaypoint.java @@ -308,6 +308,10 @@ public class cgeowaypoint extends AbstractActivity { } } + /** + * @param view + * unused here but needed since this method is referenced from XML layout + */ public void goCompass(View view) { if (!navigationPossible()) { return; |
