diff options
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | src/main/res/xml/preferences.xml | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 481a8b54b..c709e6e52 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -759,4 +759,6 @@ <string name="destroy_muc_failed">Group chat could not be destroyed</string> <string name="no_write_access_in_public_muc">You are not participating this group chat and have no write access at the moment.\nPlease go to the group chat details by pressing <b>OK</b> and send a private message to a moderator, administator or owner by long clicking one of the members name at the top of the list to ask for write access.</string> <string name="snooze">Snooze</string> + <string name="huawei_protected_apps">Protected Apps</string> + <string name="huawei_protected_apps_summary">To keep receiving notifications, even when the screen is turned off, you need to add Conversations to the list of protected apps.</string> </resources> diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 82d9ea00f..109d61239 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -247,7 +247,8 @@ android:icon="@drawable/ic_settings_black_24dp" android:key="expert" android:title="@string/pref_expert_options"> - <PreferenceCategory android:title="@string/pref_general"> + <PreferenceCategory android:title="@string/pref_general" + android:key="general"> <ListPreference android:defaultValue="@string/default_resource" android:entries="@array/resources" @@ -260,6 +261,14 @@ android:key="show_foreground_service" android:summary="@string/pref_show_foreground_service_summary" android:title="@string/pref_show_foreground_service"/> + <PreferenceScreen + android:key="huawei" + android:summary="@string/huawei_protected_apps_summary" + android:title="@string/huawei_protected_apps"> + <intent + android:targetClass="com.huawei.systemmanager.optimize.process.ProtectActivity" + android:targetPackage="com.huawei.systemmanager" /> + </PreferenceScreen> </PreferenceCategory> <PreferenceCategory android:title="@string/pref_ui_options"> <CheckBoxPreference |