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

Commit 42c94343 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Hide legacy icon treatment behind a flag.

Change-Id: I662f1317945e6dd175fd03dbabc264e45c18dcee
parent 7d093e75
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;
}