Remove onBeforeNotificationAdded call
By moving where appOps of notifications gets set When appOps change: StatusBar detects appOp change and propogates change to ForegroundServiceController which stores appOp change (in case notification hasn't been added yet). This controller will also update the appOps of the relevant pending/visible notification When a notification is added/updated: ForegroundServiceNotificationListener updates the relevant notification's appOps Test: atest NotificationEntryManagerTest NotificationDataTest Test: atest ForegroundServiceControllerTest Change-Id: I3af4a2cf599d3eba7a0ba6006b3919730e5e658a
Loading
Please register or sign in to comment