File changed.
Preview size limit exceeded, changes collapsed.
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Previously this was done only on the setNotificationsEnabledForPackage() codepath, called by Settings UI. This meant that notifications would remain if the permission was revoked through other means, such as via permission Backup & Restore or via `adb shell pm revoke` (and possibly others). Now we listen to AppOp mode changes (for `OP_POST_NOTIFICATION`) and react to them, for a more consistent behavior. This CL also removes some unused or obsolete parameters from cancelAllNotificationsInt, together with the ACTION_QUERY_PACKAGE_RESTART broadcast listener. MUST_SLEEP: To test the effects of a postDelayed() call. Test: atest NotificationManagerService + manual Fixes: 288651621 Change-Id: I6ec1c75f206bc3b3c4252768a433b886b3983be8
File changed.
Preview size limit exceeded, changes collapsed.