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

Commit b8b96b5e authored by Matías Hernández's avatar Matías Hernández
Browse files

Don't set non-FIXED_SPACE StatusBarIconViews to CENTER

They might be CENTER or CENTER_INSIDE, depending on who created it (e.g. CENTER_INSIDE in aod as created by IconManager.kt).

Bug: 360399800
Test: atest NotificationIconContainerScreenshotTest + abtd
Flag: android.app.modes_ui
Change-Id: I4a82429bd4040d64f2436bdec743318229e45b49
parent fe76b1d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -415,8 +415,8 @@ public class StatusBarIconView extends AnimatedImageView implements StatusIconDi
        if (!levelEquals) {
            setImageLevel(icon.iconLevel);
        }
        if (usesModeIcons()) {
            setScaleType(icon.shape == Shape.FIXED_SPACE ? ScaleType.FIT_CENTER : ScaleType.CENTER);
        if (usesModeIcons() && icon.shape == Shape.FIXED_SPACE) {
            setScaleType(ScaleType.FIT_CENTER);
        }
        if (!visibilityEquals) {
            setVisibility(icon.visible && !mBlocked ? VISIBLE : GONE);