Added ground station preferences and location switcher

This commit is contained in:
Arty Bishop committed 2019-10-20 15:18:07 +01:00
1 parent a90e9ea418
commit 3bf511019e
2 files changed
+33 -11

No files matched your search

+23 -7
View File
@@ -1,13 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/placeholder">
<PreferenceCategory android:title="Ground station location">
<SwitchPreference
android:defaultValue="true"
android:disableDependentsState="true"
android:key="DEVICE_LOCATION"
android:summary="@string/device_location_summary"
android:title="Use device location" />
<EditTextPreference
android:key="username"
android:summary="@string/placeholder"
android:title="@string/placeholder" />
android:defaultValue="@string/latitude_def"
android:dependency="DEVICE_LOCATION"
android:key="LATITUDE"
android:summary="@string/latitude_summary"
android:title="@string/latitude" />
<EditTextPreference
android:key="password"
android:summary="@string/placeholder"
android:title="@string/placeholder" />
android:defaultValue="@string/longitude_def"
android:dependency="DEVICE_LOCATION"
android:key="LONGITUDE"
android:summary="@string/longitude_summary"
android:title="@string/longitude" />
<EditTextPreference
android:defaultValue="@string/height_def"
android:dependency="DEVICE_LOCATION"
android:key="HEIGHT"
android:summary="@string/height_summary"
android:title="@string/height" />
</PreferenceCategory>
</PreferenceScreen>