Loading src/com/android/launcher3/graphics/LauncherIcons.java +1 −1 Original line number Diff line number Diff line Loading @@ -228,7 +228,7 @@ public class LauncherIcons { * create MaskableIconDrawable. */ static Drawable wrapToMaskableIconDrawable(Context context, Drawable drawable) { if (!(ProviderConfig.IS_DOGFOOD_BUILD && Utilities.isAtLeastO())) { if (!(FeatureFlags.LEGACY_ICON_TREATMENT && Utilities.isAtLeastO())) { return drawable; } Loading src_config/com/android/launcher3/config/FeatureFlags.java +2 −0 Original line number Diff line number Diff line Loading @@ -42,4 +42,6 @@ public final class FeatureFlags { public static final boolean LAUNCHER3_DIRECT_SCROLL = true; // When enabled icons are badged with the number of notifications associated with that app. public static final boolean BADGE_ICONS = true; // When enabled, icons not supporting {@link MaskableIconDrawable} will be wrapped in this class. public static final boolean LEGACY_ICON_TREATMENT = false; } Loading
src/com/android/launcher3/graphics/LauncherIcons.java +1 −1 Original line number Diff line number Diff line Loading @@ -228,7 +228,7 @@ public class LauncherIcons { * create MaskableIconDrawable. */ static Drawable wrapToMaskableIconDrawable(Context context, Drawable drawable) { if (!(ProviderConfig.IS_DOGFOOD_BUILD && Utilities.isAtLeastO())) { if (!(FeatureFlags.LEGACY_ICON_TREATMENT && Utilities.isAtLeastO())) { return drawable; } Loading
src_config/com/android/launcher3/config/FeatureFlags.java +2 −0 Original line number Diff line number Diff line Loading @@ -42,4 +42,6 @@ public final class FeatureFlags { public static final boolean LAUNCHER3_DIRECT_SCROLL = true; // When enabled icons are badged with the number of notifications associated with that app. public static final boolean BADGE_ICONS = true; // When enabled, icons not supporting {@link MaskableIconDrawable} will be wrapped in this class. public static final boolean LEGACY_ICON_TREATMENT = false; }