Add setting illustration to notification cooldown

Add setting illustration to notification cooldown (also known
as adaptive notification, notification avalanche).

Fix: 354048938
Flag: com.android.server.notification.polite_notifications
Test: Manual, Settings - Notifications - Notification cooldown
try with both light and dark mode

Change-Id: If8f5d22116f90d151a285dee6423d82e0edea638
This commit is contained in:
Yining Liu
2024-07-19 22:59:58 +00:00
parent d0333eb674
commit a8eda25cca
2 changed files with 9 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -17,20 +17,20 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:title="@string/notification_polite_title">
<com.android.settingslib.widget.TopIntroPreference
android:key="polite_notification_desc"
android:title="@string/notification_polite_description"/>
<!-- TODO(b/330606963): add the illustration back when animation is ready-->
<!-- <com.android.settingslib.widget.IllustrationPreference-->
<!-- android:key="bubbles_illustration"-->
<!-- settings:searchable="false"-->
<!-- android:selectable="false"-->
<!-- app:lottie_rawRes="@raw/lottie_bubbles"-->
<!-- app:lottie_cacheComposition="false"-->
<!-- settings:dynamicColor="true" />-->
<com.android.settingslib.widget.IllustrationPreference
android:key="notification_cooldown_illustration"
settings:searchable="false"
android:selectable="false"
app:lottie_rawRes="@raw/lottie_notification_cooldown"
app:lottie_cacheComposition="false"
settings:dynamicColor="true"/>
<com.android.settingslib.widget.MainSwitchPreference
android:key="polite_notification_global_pref"