diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-01 22:36:52 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-01 22:39:08 +0200 |
| commit | 663afc7061a0ce6d46e51d10d1e9a42c92c62345 (patch) | |
| tree | 7fc9b779419eb3216e77276da43a181cacd539ff /main | |
| parent | 337b7561eb38e16214fcf6134707fc69bf7c8ef0 (diff) | |
| download | cgeo-663afc7061a0ce6d46e51d10d1e9a42c92c62345.zip cgeo-663afc7061a0ce6d46e51d10d1e9a42c92c62345.tar.gz cgeo-663afc7061a0ce6d46e51d10d1e9a42c92c62345.tar.bz2 | |
Clicking on the navigation info will open navigation preferences
Part of resolution of #1208.
Diffstat (limited to 'main')
| -rw-r--r-- | main/res/layout/main.xml | 5 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgeo.java | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/main/res/layout/main.xml b/main/res/layout/main.xml index e1c25cf..2f0b1d8 100644 --- a/main/res/layout/main.xml +++ b/main/res/layout/main.xml @@ -167,7 +167,8 @@ android:layout_alignParentBottom="true" android:layout_marginRight="6dip" android:layout_marginLeft="6dip" - android:orientation="vertical"> + android:orientation="vertical" + android:onClick="cgeoNavSettings"> <TextView android:id="@+id/user_info" style="@style/location_current" android:text="@string/init_login_popup_working"/> @@ -185,4 +186,4 @@ style="@style/location_current_satellites" /> </RelativeLayout> </LinearLayout> -</RelativeLayout>
\ No newline at end of file +</RelativeLayout> diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java index c14943b..ba7d725 100644 --- a/main/src/cgeo/geocaching/cgeo.java +++ b/main/src/cgeo/geocaching/cgeo.java @@ -765,6 +765,14 @@ public class cgeo extends AbstractActivity { findViewById(R.id.filter_button).performClick(); } + /** + * @param v + * unused here but needed since this method is referenced from XML layout + */ + public void cgeoNavSettings(View v) { + startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS)); + } + private class CountBubbleUpdateThread extends Thread { private Handler countBubbleHandler = new Handler() { private TextView countBubble = null; |
