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

Commit 787b435a authored by Catherine Liang's avatar Catherine Liang
Browse files

Fix incorrect icon preview sizing

Make a copy of the icon drawable instead of using the original when
creating a new ShapeTileDrawable for the Icons summary preview.

Flag: com.android.systemui.shared.extendible_theme_manager
Bug: 434952141
Test: manually verified
Change-Id: I6c204fabdc9a28a4e95b57f551ed4f9841cafb13
parent ef4a21df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ object ShapeIconViewBinder {
                ShapeTileDrawable(
                    context = view.context,
                    path = shapeIcon?.path,
                    icon = iconDrawable.icon,
                    icon = iconDrawable.icon?.constantState?.newDrawable(),
                    isThemed = iconDrawable.isThemed,
                )
            } else if (shapeIcon?.path != null) {