Skip to content

Commit ecbd68b

Browse files
author
Amith Yamasani
committed
Resolve USER_ALL when inflating notification views.
Fixes the OTA icon display when the OTA is to be shown to all users. Bug: 7462511 Change-Id: I185d9d5340d866d0a4b0ae273a361e8db160e33b
1 parent 37238e5 commit ecbd68b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/android/app/Notification.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,9 @@ public String toString() {
896896

897897
/** {@hide} */
898898
public void setUser(UserHandle user) {
899+
if (user.getIdentifier() == UserHandle.USER_ALL) {
900+
user = UserHandle.OWNER;
901+
}
899902
if (tickerView != null) {
900903
tickerView.setUser(user);
901904
}

0 commit comments

Comments
 (0)