1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 14:32:54 +01:00

Move location settings out of pebble menu

This commit is contained in:
Andreas Shimokawa 2021-11-02 23:30:37 +01:00
parent a7fbda5fe1
commit cf4e4952ea

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory <PreferenceCategory
android:key="pref_key_general" android:key="pref_key_general"
android:title="@string/pref_header_general"> android:title="@string/pref_header_general">
@ -119,9 +118,31 @@
android:summary="@string/pref_summary_datetime_syctimeonconnect" android:summary="@string/pref_summary_datetime_syctimeonconnect"
android:title="@string/pref_title_datetime_syctimeonconnect" /> android:title="@string/pref_title_datetime_syctimeonconnect" />
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/pref_header_location">
<PreferenceCategory <Preference
android:title="@string/preferences_category_device_specific_settings"> android:key="location_aquire"
android:title="@string/pref_title_location_aquire" />
<EditTextPreference
android:defaultValue="0"
android:inputType="numberDecimal|numberSigned"
android:key="location_latitude"
android:maxLength="7"
android:title="@string/pref_title_location_latitude" />
<EditTextPreference
android:defaultValue="0"
android:inputType="numberDecimal|numberSigned"
android:key="location_longitude"
android:maxLength="7"
android:title="@string/pref_title_location_longitude" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="location_aquire"
android:key="use_updated_location_if_available"
android:layout="@layout/preference_checkbox"
android:summary="@string/pref_summary_location_keep_uptodate"
android:title="@string/pref_title_location_keep_uptodate" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_category_device_specific_settings">
<Preference <Preference
android:icon="@drawable/ic_device_pebble" android:icon="@drawable/ic_device_pebble"
@ -212,31 +233,6 @@
android:key="pebble_sync_morpheuz" android:key="pebble_sync_morpheuz"
android:title="@string/pref_title_pebble_sync_morpheuz" /> android:title="@string/pref_title_pebble_sync_morpheuz" />
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory
android:title="@string/pref_header_location">
<Preference
android:key="location_aquire"
android:title="@string/pref_title_location_aquire"/>
<EditTextPreference
android:maxLength="7"
android:inputType="numberDecimal|numberSigned"
android:defaultValue="0"
android:key="location_latitude"
android:title="@string/pref_title_location_latitude" />
<EditTextPreference
android:maxLength="7"
android:inputType="numberDecimal|numberSigned"
android:defaultValue="0"
android:key="location_longitude"
android:title="@string/pref_title_location_longitude" />
<CheckBoxPreference
android:layout="@layout/preference_checkbox"
android:defaultValue="true"
android:dependency="location_aquire"
android:key="use_updated_location_if_available"
android:summary="@string/pref_summary_location_keep_uptodate"
android:title="@string/pref_title_location_keep_uptodate" />
</PreferenceCategory>
<PreferenceCategory <PreferenceCategory
android:title="@string/pref_header_development"> android:title="@string/pref_header_development">
<CheckBoxPreference <CheckBoxPreference