2024-01-07 23:18:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<PreferenceScreen
|
|
|
|
android:icon="@drawable/ic_block"
|
|
|
|
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"
|
|
|
|
android:summary="@string/mi2_prefs_do_not_disturb_summary"/>
|
|
|
|
|
|
|
|
<ListPreference
|
|
|
|
android:defaultValue="@string/p_off"
|
|
|
|
android:entries="@array/do_not_disturb_allday"
|
|
|
|
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="00:00"
|
|
|
|
android:key="do_not_disturb_start"
|
|
|
|
android:title="@string/mi2_prefs_do_not_disturb_start" />
|
|
|
|
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
|
|
|
|
android:defaultValue="23:59"
|
|
|
|
android:key="do_not_disturb_end"
|
|
|
|
android:title="@string/mi2_prefs_do_not_disturb_end" />
|
|
|
|
|
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:icon="@drawable/ic_arrow_upward"
|
|
|
|
android:key="do_not_disturb_lift_wrist"
|
2024-03-31 00:31:23 +01:00
|
|
|
android:layout="@layout/preference_checkbox"
|
2024-01-07 23:18:08 +01:00
|
|
|
android:title="@string/mi2_prefs_do_not_disturb_lift_wrist"
|
|
|
|
android:summary="@string/do_not_disturb_lift_wrist_summary"/>
|
|
|
|
|
|
|
|
<!-- workaround for missing toolbar -->
|
|
|
|
<PreferenceCategory android:title="@string/zetime_prefs_inactivity_repetitions">
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="pref_do_not_disturb_mo"
|
|
|
|
android:title="@string/zetime_prefs_inactivity_mo" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="pref_do_not_disturb_tu"
|
|
|
|
android:title="@string/zetime_prefs_inactivity_tu" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="pref_do_not_disturb_we"
|
|
|
|
android:title="@string/zetime_prefs_inactivity_we" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="pref_do_not_disturb_th"
|
|
|
|
android:title="@string/zetime_prefs_inactivity_th" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="pref_do_not_disturb_fr"
|
|
|
|
android:title="@string/zetime_prefs_inactivity_fr" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="pref_do_not_disturb_sa"
|
|
|
|
android:title="@string/zetime_prefs_inactivity_sa" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="pref_do_not_disturb_su"
|
|
|
|
android:title="@string/zetime_prefs_inactivity_su" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
</PreferenceScreen>
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.preference.PreferenceScreen>
|