Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5b85863 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Update large icon in changed status bar notifications.

Reapply fix from change I6bb72c0b to phones.

Bug: 5071157
Change-Id: I9da5ee6cf72b148e5fef4de6e1c9328ccb4b28b8
parent 142d7575
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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.