commit | 42c9434346427be067a5512d37e435ba20eaae67 | [log] [tgz] |
---|---|---|
author | Hyunyoung Song <hyunyoungs@google.com> | Tue Feb 14 09:23:30 2017 -0800 |
committer | Hyunyoung Song <hyunyoungs@google.com> | Tue Feb 14 09:23:30 2017 -0800 |
tree | 2993d2e24d307a01555994e4966ab8051fb21ee1 | |
parent | 7d093e75f698db323fe128cd76e0c0bb8492a059 [diff] |
Hide legacy icon treatment behind a flag. Change-Id: I662f1317945e6dd175fd03dbabc264e45c18dcee
diff --git a/src/com/android/launcher3/graphics/LauncherIcons.java b/src/com/android/launcher3/graphics/LauncherIcons.java index 3fffb5b..1a50dfe 100644 --- a/src/com/android/launcher3/graphics/LauncherIcons.java +++ b/src/com/android/launcher3/graphics/LauncherIcons.java
@@ -228,7 +228,7 @@ * 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; }
diff --git a/src_config/com/android/launcher3/config/FeatureFlags.java b/src_config/com/android/launcher3/config/FeatureFlags.java index 5c29366..7459c0c 100644 --- a/src_config/com/android/launcher3/config/FeatureFlags.java +++ b/src_config/com/android/launcher3/config/FeatureFlags.java
@@ -42,4 +42,6 @@ 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; }