2021-09-21 16:37:19 +02: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_chair"
|
2022-10-22 21:53:45 +02:00
|
|
|
android:key="pref_screen_inactivity_extended"
|
2021-09-21 16:37:19 +02:00
|
|
|
android:persistent="false"
|
|
|
|
android:summary="@string/mi2_prefs_inactivity_warnings_summary"
|
|
|
|
android:title="@string/mi2_prefs_inactivity_warnings">
|
|
|
|
|
|
|
|
<!-- workaround for missing toolbar -->
|
|
|
|
<PreferenceCategory android:title="@string/mi2_prefs_inactivity_warnings_summary" />
|
|
|
|
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2021-09-21 16:37:19 +02:00
|
|
|
android:defaultValue="false"
|
2022-03-07 15:13:23 +01:00
|
|
|
android:key="inactivity_warnings_enable"
|
2022-10-22 21:53:45 +02:00
|
|
|
android:summary="@string/mi2_prefs_inactivity_warnings_summary"
|
|
|
|
android:title="@string/mi2_prefs_inactivity_warnings" />
|
2021-09-21 16:37:19 +02:00
|
|
|
|
|
|
|
<ListPreference
|
|
|
|
android:defaultValue="4"
|
2022-03-07 15:13:23 +01:00
|
|
|
android:dependency="inactivity_warnings_enable"
|
2021-09-21 16:37:19 +02:00
|
|
|
android:entries="@array/inactivity_minutes"
|
|
|
|
android:entryValues="@array/inactivity_minutes_values"
|
2022-05-29 21:18:53 +02:00
|
|
|
android:key="inactivity_warnings_threshold_extended"
|
2021-09-21 16:37:19 +02:00
|
|
|
android:summary="@string/mi2_prefs_inactivity_warnings_summary"
|
|
|
|
android:title="@string/mi2_prefs_inactivity_warnings_threshold" />
|
|
|
|
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
|
|
|
|
android:defaultValue="08:00"
|
2022-05-14 22:08:32 +02:00
|
|
|
android:dependency="inactivity_warnings_enable"
|
2022-03-07 15:13:23 +01:00
|
|
|
android:key="inactivity_warnings_start"
|
2021-09-21 16:37:19 +02:00
|
|
|
android:title="@string/mi2_prefs_do_not_disturb_start" />
|
|
|
|
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.util.XTimePreference
|
|
|
|
android:defaultValue="16:00"
|
2022-05-14 22:08:32 +02:00
|
|
|
android:dependency="inactivity_warnings_enable"
|
2022-03-07 15:13:23 +01:00
|
|
|
android:key="inactivity_warnings_end"
|
2021-09-21 16:37:19 +02:00
|
|
|
android:title="@string/mi2_prefs_do_not_disturb_end" />
|
|
|
|
</PreferenceScreen>
|
|
|
|
</androidx.preference.PreferenceScreen>
|