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

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Pranav Vashi
2024-12-19 09:10:03 +09:00
committed by Joey Huab
parent a84ca65600
commit 0792565074
2 changed files with 25 additions and 0 deletions

View File

@@ -147,6 +147,8 @@
<string name="quick_settings_bluetooth_show_dialog_summary">Show bluetooth dialog or toggle bluetooth state on tapping bluetooth tile</string>
<!-- Notifications -->
<string name="notifications_heads_up_title">Heads up</string>
<string name="notifications_heads_up_summary">Allow pop up notifications</string>
<string name="notifications_interface_category">Interface</string>
<string name="notifications_kill_app_button_title">Kill app</string>
<string name="notifications_kill_app_button_summary">Show a kill app button in the notification\'s longpress menu</string>
@@ -154,6 +156,10 @@
<string name="notifications_alert_display_on_title">Alert while display on</string>
<string name="notifications_alert_display_on_summary">Play sound and vibration for notifications while the display is on</string>
<!-- Notifications/Less boring heads up -->
<string name="notifications_less_boring_heads_up_title">Less boring</string>
<string name="notifications_less_boring_heads_up_summary">Display popup notifications only for alarm, dialer and messaging app</string>
<!-- Power menu -->
<string name="power_menu_interface_category">Interface</string>
<string name="power_menu_actions_title">Power menu actions</string>

View File

@@ -9,6 +9,25 @@
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/notifications_title">
<PreferenceCategory
android:key="heads_up"
android:title="@string/notifications_heads_up_title">
<!-- Heads up -->
<lineageos.preference.GlobalSettingSwitchPreference
android:key="heads_up_notifications_enabled"
android:title="@string/heads_up_notifications_enabled_title"
android:summary="@string/heads_up_notifications_enabled_summary" />
<!-- Less boring heads up -->
<org.evolution.settings.preferences.SystemSettingSwitchPreference
android:key="less_boring_heads_up"
android:title="@string/notifications_less_boring_heads_up_title"
android:summary="@string/notifications_less_boring_heads_up_summary"
android:defaultValue="false"
android:dependency="heads_up_notifications_enabled" />
</PreferenceCategory>
<PreferenceCategory
android:key="notifications_interface_category"
android:title="@string/notifications_interface_category">