Loading res/xml/channel_notification_settings.xml +9 −1 Original line number Diff line number Diff line Loading @@ -94,9 +94,17 @@ android:summary="@string/app_notification_override_dnd_summary" settings:useAdditionalSummary="true"/> <com.android.settings.RestrictedListPreference android:key="sound_timeout" android:order="17" android:title="@string/app_notification_sound_timeout_title" android:entries="@array/app_notification_sound_timeout_entries" android:entryValues="@array/app_notification_sound_timeout_values" android:persistent="false" /> <Preference android:key="app_link" android:order="17" android:order="18" android:title="@string/app_settings_link" settings:allowDividerAbove="true"/> </PreferenceCategory> Loading src/com/android/settings/notification/AppNotificationSettings.java +5 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ public class AppNotificationSettings extends NotificationSettingsBase { private static String KEY_ADVANCED_CATEGORY = "app_advanced"; private static String KEY_BADGE = "badge"; private static String KEY_APP_LINK = "app_link"; private static String KEY_SOUND_TIMEOUT = "sound_timeout"; private List<NotificationChannelGroup> mChannelGroupList; Loading @@ -66,6 +67,7 @@ public class AppNotificationSettings extends NotificationSettingsBase { // if showing legacy settings, pull advanced settings out of the advanced category Preference badge = findPreference(KEY_BADGE); Preference appLink = findPreference(KEY_APP_LINK); Preference soundTimeout = findPreference(KEY_SOUND_TIMEOUT); removePreference(KEY_ADVANCED_CATEGORY); if (badge != null) { screen.addPreference(badge); Loading @@ -74,6 +76,9 @@ public class AppNotificationSettings extends NotificationSettingsBase { if (appLink != null) { screen.addPreference(appLink); } if (soundTimeout != null) { screen.addPreference(soundTimeout); } } } Loading Loading
res/xml/channel_notification_settings.xml +9 −1 Original line number Diff line number Diff line Loading @@ -94,9 +94,17 @@ android:summary="@string/app_notification_override_dnd_summary" settings:useAdditionalSummary="true"/> <com.android.settings.RestrictedListPreference android:key="sound_timeout" android:order="17" android:title="@string/app_notification_sound_timeout_title" android:entries="@array/app_notification_sound_timeout_entries" android:entryValues="@array/app_notification_sound_timeout_values" android:persistent="false" /> <Preference android:key="app_link" android:order="17" android:order="18" android:title="@string/app_settings_link" settings:allowDividerAbove="true"/> </PreferenceCategory> Loading
src/com/android/settings/notification/AppNotificationSettings.java +5 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ public class AppNotificationSettings extends NotificationSettingsBase { private static String KEY_ADVANCED_CATEGORY = "app_advanced"; private static String KEY_BADGE = "badge"; private static String KEY_APP_LINK = "app_link"; private static String KEY_SOUND_TIMEOUT = "sound_timeout"; private List<NotificationChannelGroup> mChannelGroupList; Loading @@ -66,6 +67,7 @@ public class AppNotificationSettings extends NotificationSettingsBase { // if showing legacy settings, pull advanced settings out of the advanced category Preference badge = findPreference(KEY_BADGE); Preference appLink = findPreference(KEY_APP_LINK); Preference soundTimeout = findPreference(KEY_SOUND_TIMEOUT); removePreference(KEY_ADVANCED_CATEGORY); if (badge != null) { screen.addPreference(badge); Loading @@ -74,6 +76,9 @@ public class AppNotificationSettings extends NotificationSettingsBase { if (appLink != null) { screen.addPreference(appLink); } if (soundTimeout != null) { screen.addPreference(soundTimeout); } } } Loading