Updating color extraction to include wallpaper theme color.

Also adding mathods and callbacks to pass the related data to the callbacks.

Bug: 37616877
Change-Id: I7512cac7a603e8e5a05ec3a360c9eec493344b00
This commit is contained in:
Sunny Goyal
2017-04-25 23:09:06 -07:00
parent d519052281
commit 5e7b238a93
8 changed files with 93 additions and 37 deletions

View File

@@ -221,7 +221,7 @@ public class PageIndicatorLineCaret extends PageIndicator {
*/
public void updateColor(ExtractedColors extractedColors) {
int originalLineAlpha = mLinePaint.getAlpha();
int color = extractedColors.getColor(ExtractedColors.HOTSEAT_INDEX, Color.TRANSPARENT);
int color = extractedColors.getColor(ExtractedColors.HOTSEAT_INDEX);
if (color != Color.TRANSPARENT) {
color = ColorUtils.setAlphaComponent(color, 255);
if (color == Color.BLACK) {