summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2016-04-27 11:33:20 (GMT)
committerDanny Baumann <dannybaumann@web.de>2016-04-27 11:33:20 (GMT)
commite352d897c3ed24db80bd79f6e85478b9c50c702d (patch)
treec8c720fc3d9f27ac6f7fe88ec5c1f469cb1dd556
parent8ece4c15bcd9fc84faf34531f9778559cee774b0 (diff)
downloadandroid_packages_apps_Eleven-e352d897c3ed24db80bd79f6e85478b9c50c702d.zip
android_packages_apps_Eleven-e352d897c3ed24db80bd79f6e85478b9c50c702d.tar.gz
android_packages_apps_Eleven-e352d897c3ed24db80bd79f6e85478b9c50c702d.tar.bz2
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
-rw-r--r--src/com/cyanogenmod/eleven/utils/BitmapWithColors.java7
1 files changed, 1 insertions, 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;
}