1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00

[Huawei] Add TruSleep warning

This commit is contained in:
Martin.JM 2024-05-02 20:48:38 +02:00
parent 881e8e36e8
commit 4c93647aaf
2 changed files with 15 additions and 7 deletions

View File

@ -2381,6 +2381,7 @@
<string name="huawei_trusleep_title">HUAWEI TruSleep &#8482;</string> <string name="huawei_trusleep_title">HUAWEI TruSleep &#8482;</string>
<string name="huawei_trusleep_summary">Monitor your sleep quality and breathing pattern in real time.\nAnalyze your sleep patterns and accurately diagnose 6 types of sleeping problems.</string> <string name="huawei_trusleep_summary">Monitor your sleep quality and breathing pattern in real time.\nAnalyze your sleep patterns and accurately diagnose 6 types of sleeping problems.</string>
<string name="huawei_trusleep_summary_light">Improved sleep monitoring</string> <string name="huawei_trusleep_summary_light">Improved sleep monitoring</string>
<string name="huawei_trusleep_warning">Warning: enabling this will stop sleep from showing up in Gadgetbridge! Click here if you accept this.</string>
<string name="prefs_activity_recognition">Activity recognition settings</string> <string name="prefs_activity_recognition">Activity recognition settings</string>
<string name="pref_activity_recognize_running">recognize running</string> <string name="pref_activity_recognize_running">recognize running</string>
<string name="pref_activity_recognize_biking">recognize biking</string> <string name="pref_activity_recognize_biking">recognize biking</string>

View File

@ -1,19 +1,26 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen <PreferenceScreen
android:icon="@drawable/ic_access_time" android:icon="@drawable/ic_activity_sleep"
android:key="screen_trusleep" android:key="screen_trusleep"
android:persistent="false" android:persistent="false"
android:title="@string/huawei_trusleep_title" android:title="@string/huawei_trusleep_title"
android:summary="@string/huawei_trusleep_summary_light"> android:summary="@string/huawei_trusleep_summary_light">
<SwitchPreferenceCompat <PreferenceScreen
android:icon="@drawable/ic_access_time" android:icon="@drawable/ic_activity_sleep"
android:defaultValue="false" android:key="screen_trusleep_warning"
android:key="trusleep"
android:layout="@layout/preference_checkbox"
android:title="@string/huawei_trusleep_title" android:title="@string/huawei_trusleep_title"
android:summary="@string/huawei_trusleep_summary"/> android:summary="@string/huawei_trusleep_warning">
<SwitchPreferenceCompat
android:icon="@drawable/ic_activity_sleep"
android:defaultValue="false"
android:key="trusleep"
android:layout="@layout/preference_checkbox"
android:title="@string/huawei_trusleep_title"
android:summary="@string/huawei_trusleep_summary"/>
</PreferenceScreen>
</PreferenceScreen> </PreferenceScreen>
</androidx.preference.PreferenceScreen> </androidx.preference.PreferenceScreen>