2019-05-24 23:46:20 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<PreferenceScreen
|
2020-09-01 21:27:07 +02:00
|
|
|
android:icon="@drawable/ic_block"
|
2019-05-24 23:46:20 +02:00
|
|
|
android:key="screen_do_not_disturb"
|
|
|
|
android:persistent="false"
|
|
|
|
android:summary="@string/mi2_prefs_do_not_disturb_summary"
|
|
|
|
android:title="@string/mi2_prefs_do_not_disturb">
|
|
|
|
|
|
|
|
<!-- workaround for missing toolbar -->
|
|
|
|
<PreferenceCategory android:title="@string/mi2_prefs_do_not_disturb" />
|
|
|
|
|
|
|
|
<ListPreference
|
|
|
|
android:defaultValue="@string/p_off"
|
|
|
|
android:entries="@array/mi2_do_not_disturb"
|
|
|
|
android:entryValues="@array/mi2_do_not_disturb_values"
|
|
|
|
android:key="do_not_disturb"
|
|
|
|
android:summary="%s"
|
|
|
|
android:title="@string/mi2_prefs_do_not_disturb" />
|
|
|
|
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
|
|
|
|
android:defaultValue="01:00"
|
|
|
|
android:key="do_not_disturb_start"
|
|
|
|
android:title="@string/mi2_prefs_do_not_disturb_start" />
|
|
|
|
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
|
|
|
|
android:defaultValue="06:00"
|
|
|
|
android:key="do_not_disturb_end"
|
|
|
|
android:title="@string/mi2_prefs_do_not_disturb_end" />
|
|
|
|
|
|
|
|
</PreferenceScreen>
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.preference.PreferenceScreen>
|