mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-02 06:52:55 +01:00
0d49eaaf9e
This also cleans up some useless preferencehandlers that only change summary by using app:useSimpleSummaryProvider="true" for EditText
68 lines
3.3 KiB
XML
68 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<PreferenceScreen
|
|
android:key="screen_events_forwarding"
|
|
android:icon="@drawable/ic_extension"
|
|
android:persistent="false"
|
|
android:summary="@string/prefs_events_forwarding_summary"
|
|
android:title="@string/prefs_events_forwarding_title">
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/prefs_events_forwarding_fellsleep"
|
|
android:icon="@drawable/ic_nights_stay">
|
|
|
|
<ListPreference
|
|
android:entries="@array/device_action_options"
|
|
android:entryValues="@array/device_action_values"
|
|
android:key="events_forwarding_fellsleep_action_selection"
|
|
android:summary="%s"
|
|
android:defaultValue="@string/pref_button_action_disabled_value"
|
|
android:title="@string/prefs_events_forwarding_action_title" />
|
|
<EditTextPreference
|
|
android:defaultValue="@string/prefs_events_forwarding_fellsleep_broadcast_default_value"
|
|
android:key="prefs_events_forwarding_fellsleep_broadcast"
|
|
android:title="@string/prefs_events_forwarding_broadcast_title"
|
|
app:useSimpleSummaryProvider="true" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/prefs_events_forwarding_wokeup"
|
|
android:icon="@drawable/ic_wb_sunny">
|
|
|
|
<ListPreference
|
|
android:entries="@array/device_action_options"
|
|
android:entryValues="@array/device_action_values"
|
|
android:key="events_forwarding_wokeup_action_selection"
|
|
android:summary="%s"
|
|
android:defaultValue="@string/pref_button_action_disabled_value"
|
|
android:title="@string/prefs_events_forwarding_action_title" />
|
|
<EditTextPreference
|
|
android:defaultValue="@string/prefs_events_forwarding_wokeup_broadcast_default_value"
|
|
android:key="prefs_events_forwarding_wokeup_broadcast"
|
|
android:title="@string/prefs_events_forwarding_broadcast_title"
|
|
app:useSimpleSummaryProvider="true" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/prefs_events_forwarding_startnonwear"
|
|
android:icon="@drawable/ic_no_watch">
|
|
|
|
<ListPreference
|
|
android:entries="@array/device_action_options"
|
|
android:entryValues="@array/device_action_values"
|
|
android:key="events_forwarding_startnonwear_action_selection"
|
|
android:summary="%s"
|
|
android:defaultValue="@string/pref_button_action_disabled_value"
|
|
android:title="@string/prefs_events_forwarding_action_title" />
|
|
<EditTextPreference
|
|
android:defaultValue="@string/prefs_events_forwarding_startnonwear_broadcast_default_value"
|
|
android:key="prefs_events_forwarding_startnonwear_broadcast"
|
|
android:title="@string/prefs_events_forwarding_broadcast_title"
|
|
app:useSimpleSummaryProvider="true" />
|
|
</PreferenceCategory>
|
|
|
|
|
|
</PreferenceScreen>
|
|
</androidx.preference.PreferenceScreen>
|