1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-23 13:30:48 +02:00
Gadgetbridge/app/src/main/res/xml/devicesettings_hydration_reminder_dnd.xml
2024-03-31 07:46:47 +00:00

42 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen
android:icon="@drawable/ic_drink"
android:key="screen_hydration_reminder"
android:persistent="false"
android:summary="@string/lefun_prefs_hydration_reminder_summary"
android:title="@string/lefun_prefs_hydration_reminder_title">
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_hydration_switch"
android:layout="@layout/preference_checkbox"
android:title="@string/lefun_prefs_hydration_reminder_title" />
<EditTextPreference
android:defaultValue="60"
android:key="pref_hydration_period"
android:summary="@string/lefun_prefs_hydration_reminder_summary"
android:title="@string/lefun_prefs_hydration_reminder_interval_title"/>
<SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="screen_hydration_reminder"
android:key="pref_hydration_dnd"
android:layout="@layout/preference_checkbox"
android:summary="@string/hydration_dnd_summary"
android:title="@string/mi2_prefs_do_not_disturb" />
<nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
android:defaultValue="12:00"
android:dependency="pref_hydration_dnd"
android:key="pref_hydration_dnd_start"
android:title="@string/mi2_prefs_do_not_disturb_start" />
<nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
android:defaultValue="14:00"
android:dependency="pref_hydration_dnd"
android:key="pref_hydration_dnd_end"
android:title="@string/mi2_prefs_do_not_disturb_end" />
</PreferenceScreen>
</androidx.preference.PreferenceScreen>