Sleep as Android: Add proprietary app warning

This commit is contained in:
José Rebelo 2024-07-08 21:34:07 +01:00
parent 7e0e3fa661
commit 921eeb1035
2 changed files with 6 additions and 0 deletions

View File

@ -192,6 +192,7 @@
<string name="open_fw_installer_ensure_device_connected">Make sure that the device %s is connected</string> <string name="open_fw_installer_ensure_device_connected">Make sure that the device %s is connected</string>
<!-- Strings related to Settings --> <!-- Strings related to Settings -->
<string name="title_activity_settings">Settings</string> <string name="title_activity_settings">Settings</string>
<string name="proprietary_app_warning">This feature requires the installation of a proprietary app</string>
<string name="pref_header_general">General settings</string> <string name="pref_header_general">General settings</string>
<string name="pref_header_other">Other</string> <string name="pref_header_other">Other</string>
<string name="pref_header_system">System</string> <string name="pref_header_system">System</string>

View File

@ -1,6 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<Preference
android:icon="@drawable/ic_warning"
android:key="pref_proprietary_app_warning"
android:summary="@string/proprietary_app_warning" />
<PreferenceCategory <PreferenceCategory
android:key="pref_key_sleepasandroid_general" android:key="pref_key_sleepasandroid_general"
android:title="@string/pref_header_general" android:title="@string/pref_header_general"