commit | e4a47ddc3a12f454e58ccf8797148f4bc083695c | [log] [tgz] |
---|---|---|
author | Julia Reynolds <juliacr@google.com> | Fri Jun 07 13:40:59 2019 -0400 |
committer | Julia Reynolds <juliacr@google.com> | Fri Jun 07 14:05:32 2019 -0400 |
tree | 1801640e507aaf19ed937741c413606c4cc0959e | |
parent | 0bc184cfbb20856bf812f02ef1f798b6068e5e3a [diff] [blame] |
Allow delegates to cancel notifs they posted They still cannot see or cancel notifications that the delegator app posted Test: cts Bug: 134585713 Change-Id: If2065010ea5f65cdc0b531441be9a9989214afb7
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java index 1432f57..d848796 100644 --- a/services/core/java/com/android/server/accounts/AccountManagerService.java +++ b/services/core/java/com/android/server/accounts/AccountManagerService.java
@@ -5310,7 +5310,8 @@ long identityToken = clearCallingIdentity(); try { INotificationManager service = mInjector.getNotificationManager(); - service.cancelNotificationWithTag(packageName, id.mTag, id.mId, user.getIdentifier()); + service.cancelNotificationWithTag( + packageName, "android", id.mTag, id.mId, user.getIdentifier()); } catch (RemoteException e) { /* ignore - local call */ } finally {