Initialize shape with PreviewContext init and remove nullability

Bug: 372887760
Bug: 348664593
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: previewing shapes with flag on/off
Change-Id: I4d7278c54a0d69e38142d31dd7a9605a74db3348
This commit is contained in:
Charlie Anderson
2025-02-21 20:04:34 +00:00
parent aa0f606b9c
commit de15672e6f
3 changed files with 12 additions and 10 deletions
@@ -377,7 +377,9 @@ public class GridCustomizationsProxy implements ProxyProvider {
if (Flags.newCustomizationPickerUi()
&& com.android.launcher3.Flags.enableLauncherIconShapes()) {
String shapeKey = message.getData().getString(KEY_SHAPE_KEY);
renderer.updateShape(shapeKey);
if (!TextUtils.isEmpty(shapeKey)) {
renderer.updateShape(shapeKey);
}
}
break;
case MESSAGE_ID_UPDATE_GRID: