From d5b858639cc32d27c003d7165969ec47288b3bfa Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Mon, 25 Jul 2011 20:27:39 -0400 Subject: [PATCH] Update large icon in changed status bar notifications. Reapply fix from change I6bb72c0b to phones. Bug: 5071157 Change-Id: I9da5ee6cf72b148e5fef4de6e1c9328ccb4b28b8 --- .../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index b93ad684311b..068ea746b172 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -612,6 +612,14 @@ public class PhoneStatusBar extends StatusBar { handleNotificationError(key, notification, "Couldn't update icon: " + ic); return; } + // Update the large icon + if (notification.notification.largeIcon != null) { + oldEntry.largeIcon.setImageBitmap(notification.notification.largeIcon); + } else { + oldEntry.largeIcon.getLayoutParams().width = 0; + oldEntry.largeIcon.setVisibility(View.INVISIBLE); + } + } catch (RuntimeException e) { // It failed to add cleanly. Log, and remove the view from the panel. -- 2.11.0