Clean un-used code for notification cool down
Clean the un-used code for notification cool down. Bug: 330606963 Test: PoliteNotificationGlobalPreferenceControllerTest Flag: com.android.server.notification.polite_notifications Change-Id: I081a35c8be8b9996fabb04b238cb426f0da2de58
This commit is contained in:
@@ -1511,20 +1511,6 @@
|
||||
<item>fr</item> <!-- French -->
|
||||
</string-array>
|
||||
|
||||
<!-- Values for notification cooldown -->
|
||||
<string-array name="notification_polite_options">
|
||||
<item>@string/notification_polite_all_apps</item>
|
||||
<item>@string/notification_polite_conversations</item>
|
||||
<item>@string/notification_polite_disabled</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Values for notification cooldown -->
|
||||
<string-array name="notification_polite_options_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Entries for private space auto lock option -->
|
||||
<string-array name="private_space_auto_lock_options">
|
||||
<item>@string/private_space_auto_lock_every_time</item>
|
||||
|
@@ -8683,14 +8683,6 @@
|
||||
<string name="notification_polite_title">Cooldown</string>
|
||||
<string name="notification_polite_main_control_title">Use Cooldown</string>
|
||||
<string name="notification_polite_description">When you get many notifications within a short time span, your device will minimize sound interruptions and pop-ups on the screen. Calls, alarms, and priority conversations will still alert as notmal, and all delivered notifications are easy to find in the Shade.</string>
|
||||
<string name="notification_polite_all_apps">Apply cooldown to all notifications</string>
|
||||
<string name="notification_polite_all_apps_summary">Gradually lower the notification volume when you get many successive notifications from the same app</string>
|
||||
<string name="notification_polite_conversations">Apply cooldown to conversations</string>
|
||||
<string name="notification_polite_conversations_summary">Gradually lower the notification volume when you get many messages from the same chat within a short period of time</string>
|
||||
<string name="notification_polite_disabled">Don\'t use notification cooldown</string>
|
||||
<string name="notification_polite_disabled_summary">Never lower notification volume, regardless of the amount of successive notifications from the same app</string>
|
||||
<string name="notification_polite_vibrate_unlocked">Vibrate when unlocked</string>
|
||||
<string name="notification_polite_vibrate_unlocked_summary">Only vibrate when screen is unlocked</string>
|
||||
<string name="notification_polite_work">Apply to work profiles</string>
|
||||
<string name="notification_polite_work_summary">Apply to work profile apps</string>
|
||||
|
||||
|
@@ -17,24 +17,8 @@
|
||||
|
||||
<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.settings.RestrictedListPreference-->
|
||||
<!-- android:key="polite_notifications_pref_dlg"-->
|
||||
<!-- android:persistent="false"-->
|
||||
<!-- android:title="@string/notification_polite_title"-->
|
||||
<!-- android:entries="@array/notification_polite_options"-->
|
||||
<!-- android:entryValues="@array/notification_polite_options_values"-->
|
||||
<!-- settings:controller="com.android.settings.notification.PoliteNotificationFilterController"/>-->
|
||||
|
||||
<!-- <SwitchPreferenceCompat-->
|
||||
<!-- android:key="notification_polite_vibrate_unlocked"-->
|
||||
<!-- android:persistent="false"-->
|
||||
<!-- android:title="@string/notification_polite_vibrate_unlocked"-->
|
||||
<!-- android:summary="@string/notification_polite_vibrate_unlocked_summary"-->
|
||||
<!-- settings:controller="com.android.settings.notification.PoliteNotifVibrateUnlockedToggleController" />-->
|
||||
|
||||
<com.android.settingslib.widget.TopIntroPreference
|
||||
android:key="polite_notification_desc"
|
||||
android:title="@string/notification_polite_description"/>
|
||||
|
Reference in New Issue
Block a user