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

Commit e2234add authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Update large icon in changed status bar notifications."

parents 833bfd2b d5b85863
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.