Remove Controller usage from NotificationShelf
Under a unidirectional architecture, Views should not have access to their Controller - AmbientState is View-related logic, so NotificationShelf can access that information directly on mAmbientState instead of going through the controller. - NotificationShelfController needs to push the KeyguardBypassController state into NotificationShelf, in order to reverse the data flow - Rather than NotificationShelf having a concept of "Bypass", change the API to "setCanModifyColorOfNotifications" (as opposed to "setBypassEnabled", for example) Bug: 271161129 Test: atest SystemUITests Change-Id: I1c1615d5c3b28e2237f77b786b4dad062ffbea37
Loading
Please register or sign in to comment