From 8ece4c15bcd9fc84faf34531f9778559cee774b0 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Wed, 27 Apr 2016 13:32:53 +0200 Subject: Add toString() methods to BitmapWithColors class. Eases debugging. Change-Id: I34d4d0ae888f4768232fd8a526a47111720d1faf --- src/com/cyanogenmod/eleven/utils/BitmapWithColors.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java b/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java index aaa46f5..7c30354 100644 --- a/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java +++ b/src/com/cyanogenmod/eleven/utils/BitmapWithColors.java @@ -56,6 +56,14 @@ public class BitmapWithColors { } return dominant; } + + @Override + public String toString() { + return "BitmapColors[vibrant=" + Integer.toHexString(mVibrantColor) + + ", vibrantDark=" + Integer.toHexString(mVibrantDarkColor) + + ", vibrantLight=" + Integer.toHexString(mVibrantLightColor) + + ", dominant=" + Integer.toHexString(mDominantColor) + "]"; + } } private static final int CACHE_SIZE_MAX = 20; @@ -183,4 +191,9 @@ public class BitmapWithColors { sCachedColors.put(mBitmapKey, mColors); } } + + @Override + public String toString() { + return "BitmapWithColors[key=" + mBitmapKey + ", colors=" + mColors + "]"; + } } -- cgit v1.2.3