Put shape options for picker behind it's own flag
Test: presubmit && locally verified switching flags Flag: com.android.launcher3.enable_launcher_icon_shapes Bug: 376293447 Change-Id: If2fb8b6dcdcfcaf6ba0f6f1acef45d5bf2b327cb
This commit is contained in:
1 parent
7a829e98d8
commit
be6f04b11a
1 file changed
+2
-2
@@ -139,7 +139,7 @@ public class GridCustomizationsProvider extends ContentProvider {
|
||||
|
||||
switch (path) {
|
||||
case KEY_SHAPE_OPTIONS: {
|
||||
if (Flags.newCustomizationPickerUi()) {
|
||||
if (Flags.newCustomizationPickerUi() && Flags.enableLauncherIconShapes()) {
|
||||
MatrixCursor cursor = new MatrixCursor(new String[]{
|
||||
KEY_SHAPE_KEY, KEY_SHAPE_TITLE, KEY_PATH, KEY_IS_DEFAULT});
|
||||
List<AppShape> shapes = AppShapesProvider.INSTANCE.getShapes();
|
||||
@@ -355,7 +355,7 @@ public class GridCustomizationsProvider extends ContentProvider {
|
||||
renderer.hideBottomRow(message.getData().getBoolean(KEY_HIDE_BOTTOM_ROW));
|
||||
break;
|
||||
case MESSAGE_ID_UPDATE_SHAPE:
|
||||
if (Flags.newCustomizationPickerUi()) {
|
||||
if (Flags.newCustomizationPickerUi() && Flags.enableLauncherIconShapes()) {
|
||||
String shapeKey = message.getData().getString(KEY_SHAPE_KEY);
|
||||
Optional<AppShape> optionalShape = AppShapesProvider.INSTANCE.getShapes()
|
||||
.stream()
|
||||
|
||||
Reference in new issue
Block a user