Update large icon in changed status bar notifications.

Reapply fix from change I6bb72c0b to phones.

Bug: 5071157
Change-Id: I9da5ee6cf72b148e5fef4de6e1c9328ccb4b28b8
This commit is contained in:
Daniel Sandler
2011-07-25 20:27:39 -04:00
parent 142d7575b5
commit d5b858639c

View File

@@ -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.