Update max # notifs in NotifPanelViewController
Instead of updating in NotificationViewHierarchyManager. Now both the old and new pipeline will show the correct # max notifications in the shade. This fixes the bug where only a max 3 notifications was showing in the notification shade when the new notification rendering pipeline was enabled. (onKeyguard wasn't being updated and the max # of notifications on the keyguard is 3.) This fix includes: - Update ExpandableNotificationRow's keyguard state via status bar state controller listener instead of relying on a direct call to update from NVHM/StatusBar - Removing NotificationPresenter getMaxNotificationsWhileLocked method. Instead, if a package wants to override this value, it should override the config value keyguard_max_notification_count - This also fixes regular notification expansion when enabling the new notification pipeline because now onKeyguard is being updated appropriately, so the expansion states can evaluate correctly Test: atest SystemUITests Change-Id: I07593ef5d95674911f6f96a5c03cf4128a885a99
Loading
Please register or sign in to comment