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

Commit 2f34ff4e authored by Steve Elliott's avatar Steve Elliott
Browse files

Fix incorrect placement of HUN icon in statusbar

Flag: ACONFIG com.android.systemui.notifications_icon_container_refactor
DEVELOPMENT
Bug: 278765923
Fixes: 307904590
Test: manual
 1. Receive a heads up notification
 2. Verify icon and text appear correctly in the status bar, without
    overlap

Change-Id: I557f43c3a9c7dab965a2c1f3f0e5f6139da14fb0
parent 8641972b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -512,7 +512,7 @@ public class LegacyNotificationIconAreaControllerImpl implements
    }

    public void showIconIsolated(StatusBarIconView icon, boolean animated) {
        mNotificationIcons.showIconIsolated(icon, animated);
        mNotificationIcons.showIconIsolatedLegacy(icon, animated);
    }

    public void setIsolatedIconLocation(@NotNull Rect iconDrawingRect, boolean requireStateUpdate) {
+4 −4
Original line number Diff line number Diff line
@@ -701,13 +701,13 @@ public class NotificationIconContainer extends ViewGroup {
    }

    @Deprecated
    public void showIconIsolated(StatusBarIconView icon, boolean animated) {
    public void showIconIsolatedLegacy(StatusBarIconView icon, boolean animated) {
        NotificationIconContainerRefactor.assertInLegacyMode();
        if (animated) {
            showIconIsolatedAnimated(icon, null);
        } else {
            showIconIsolated(icon);
            mIsolatedIconForAnimation = icon != null ? icon : mIsolatedIcon;
        }
        mIsolatedIcon = icon;
        updateState();
    }

    public void showIconIsolatedAnimated(StatusBarIconView icon,