From e352d897c3ed24db80bd79f6e85478b9c50c702d Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Wed, 27 Apr 2016 13:33:20 +0200 Subject: [PATCH] Generate all color swatches. While we only use the vibrant colors in the UI, we also use the palette to determine the dominant color and compare the vibrant colors against that. If the dominant color is one of the muted swatches, by only generating the vibrant swatches we needlessly exclude one of the vibrant colors from being used as visualizer color. Change-Id: I3ca1059a653ff39b49b6a38a934863ef6ad2d976 --- src/com/cyanogenmod/eleven/utils/BitmapWithColors.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java b/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java index 7c30354..b3a9962 100644 --- a/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java +++ b/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java @@ -176,12 +176,7 @@ public class BitmapWithColors { return; } - final Palette p = Palette.from(mBitmap) - .clearTargets() - .addTarget(Target.VIBRANT) - .addTarget(Target.LIGHT_VIBRANT) - .addTarget(Target.DARK_VIBRANT) - .generate(); + final Palette p = Palette.from(mBitmap).generate(); if (p == null) { return; } -- 2.11.0