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

Commit 06d4be29 authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Android (Google) Code Review
Browse files

Merge "Hide legacy icon treatment behind a flag." into ub-launcher3-master

parents b7f52ec0 42c94343
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }

+2 −0
Original line number Diff line number Diff line
@@ -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;
}