Cherish:Less boring heads up option [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
ezio84
2022-08-26 18:42:42 +07:00
committed by Hưng Phan
parent 0c0da892cb
commit f76ee81981
2 changed files with 18 additions and 2 deletions

View File

@@ -174,5 +174,10 @@
<string name="notification_sound_vib_screen_on_title">Noisy notifications if screen on</string>
<string name="notification_sound_vib_screen_on_summary">Disable to block notifications sound and vibration when the screen is awake</string>
<!-- Heads up options -->
<string name="notifications_category_title">Annoying notifications protection</string>
<string name="less_boring_heads_up_title">Make heads up less annoying</string>
<string name="less_boring_heads_up_summary">Show heads up only for dialer or messaging app if they are not in foreground</string>
</resources>

View File

@@ -47,11 +47,22 @@
android:fragment="com.cherish.settings.fragments.BatteryLightSettings"
android:title="@string/battery_light_settings" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
<PreferenceCategory
android:key="notifications_category"
android:title="@string/notifications_category_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="less_boring_heads_up"
android:title="@string/less_boring_heads_up_title"
android:summary="@string/less_boring_heads_up_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="notification_sound_vib_screen_on"
android:title="@string/notification_sound_vib_screen_on_title"
android:summary="@string/notification_sound_vib_screen_on_summary"
android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>