summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-11-02 12:17:19 -0700
committerAmith Yamasani <yamasani@google.com>2012-11-02 12:17:19 -0700
commitecbd68b0de73a16ce9d0cf2baa7153e1db14b34a (patch)
treeeeb6628616b91d2613a5d25b2c1c86c26c3a6336 /core/java/android/app/Notification.java
parent37238e5a4e10c5c5439f6864dd19049a5544e01a (diff)
downloadframeworks_base-ecbd68b0de73a16ce9d0cf2baa7153e1db14b34a.zip
frameworks_base-ecbd68b0de73a16ce9d0cf2baa7153e1db14b34a.tar.gz
frameworks_base-ecbd68b0de73a16ce9d0cf2baa7153e1db14b34a.tar.bz2
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
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 182ebef..ee92646 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);
}