From ecbd68b0de73a16ce9d0cf2baa7153e1db14b34a Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 2 Nov 2012 12:17:19 -0700 Subject: [PATCH] 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 --- core/java/android/app/Notification.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 182ebef509054..ee92646298811 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -896,6 +896,9 @@ public class Notification implements Parcelable /** {@hide} */ public void setUser(UserHandle user) { + if (user.getIdentifier() == UserHandle.USER_ALL) { + user = UserHandle.OWNER; + } if (tickerView != null) { tickerView.setUser(user); }