<?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:icon="@drawable/ic_arrow_upward"
        android:key="screen_liftwrist_display"
        android:persistent="false"
        android:title="@string/mi2_prefs_activate_display_on_lift">

        <!-- workaround for missing toolbar -->
        <PreferenceCategory android:title="@string/mi2_prefs_activate_display_on_lift" />

        <ListPreference
            android:defaultValue="@string/p_off"
            android:enabled="true"
            android:entries="@array/do_not_disturb_no_auto"
            android:entryValues="@array/do_not_disturb_no_auto_values"
            android:key="activate_display_on_lift_wrist"
            app:useSimpleSummaryProvider="true"
            android:title="@string/mi2_prefs_activate_display_on_lift" />

        <nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
            android:defaultValue="06:00"
            android:key="display_on_lift_start"
            android:title="@string/mi2_prefs_do_not_disturb_start" />

        <nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
            android:defaultValue="23:00"
            android:key="display_on_lift_end"
            android:title="@string/mi2_prefs_do_not_disturb_end" />
    </PreferenceScreen>
</androidx.preference.PreferenceScreen>