diff options
Diffstat (limited to 'src/com/android/launcher3/Hotseat.java')
-rw-r--r-- | src/com/android/launcher3/Hotseat.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index 47052a77e..ab82c988e 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -72,7 +72,9 @@ public class Hotseat extends FrameLayout mBackgroundColor = ColorUtils.setAlphaComponent( Themes.getAttrColor(context, android.R.attr.colorPrimary), 0); mBackground = new ColorDrawable(mBackgroundColor); - setBackground(mBackground); + if (!FeatureFlags.LAUNCHER3_GRADIENT_ALL_APPS) { + setBackground(mBackground); + } } public CellLayout getLayout() { @@ -179,8 +181,12 @@ public class Hotseat extends FrameLayout } public void updateColor(ExtractedColors extractedColors, boolean animate) { + if (FeatureFlags.LAUNCHER3_GRADIENT_ALL_APPS) { + // not hotseat visible + return; + } if (!mHasVerticalHotseat) { - int color = extractedColors.getColor(ExtractedColors.HOTSEAT_INDEX, Color.TRANSPARENT); + int color = extractedColors.getColor(ExtractedColors.HOTSEAT_INDEX); if (mBackgroundColorAnimator != null) { mBackgroundColorAnimator.cancel(); } |