From 3bf511019e71695d0dfc4c7dceba5fa0f7abcd76 Mon Sep 17 00:00:00 2001 From: Arty Bishop Date: Sun, 20 Oct 2019 15:18:07 +0100 Subject: [PATCH] Added ground station preferences and location switcher --- app/src/main/res/values/strings.xml | 14 ++++++++++---- app/src/main/res/xml/preference.xml | 30 ++++++++++++++++++++++------- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f63f7de3..89e2fd7a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -7,14 +7,20 @@ Radar View Map View Settings - About - GitHub + About the App + Go to GitHub Credits + Allow the app to get your location Latitude: - -90.0000 + -30.0000 + Ground station latitude from -90 to 90 Longitude: - -180.0000 + -60.0000 + Ground station longitude from -180 to 180 + Height: + 64 + Ground station height in meters AMSL Placeholder diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml index e9486b81..2cf6eeda 100644 --- a/app/src/main/res/xml/preference.xml +++ b/app/src/main/res/xml/preference.xml @@ -1,13 +1,29 @@ - + + + android:defaultValue="@string/latitude_def" + android:dependency="DEVICE_LOCATION" + android:key="LATITUDE" + android:summary="@string/latitude_summary" + android:title="@string/latitude" /> + android:defaultValue="@string/longitude_def" + android:dependency="DEVICE_LOCATION" + android:key="LONGITUDE" + android:summary="@string/longitude_summary" + android:title="@string/longitude" /> + \ No newline at end of file