summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2016-04-27 11:32:53 (GMT)
committerDanny Baumann <dannybaumann@web.de>2016-04-27 11:32:53 (GMT)
commit8ece4c15bcd9fc84faf34531f9778559cee774b0 (patch)
treecda80f4b10056afe74de22463e469f96e621ebc5
parent9e3dd801808f76c7109d8a9cc5ec2222b8292733 (diff)
downloadandroid_packages_apps_Eleven-8ece4c15bcd9fc84faf34531f9778559cee774b0.zip
android_packages_apps_Eleven-8ece4c15bcd9fc84faf34531f9778559cee774b0.tar.gz
android_packages_apps_Eleven-8ece4c15bcd9fc84faf34531f9778559cee774b0.tar.bz2
Add toString() methods to BitmapWithColors class.
Eases debugging. Change-Id: I34d4d0ae888f4768232fd8a526a47111720d1faf
-rw-r--r--src/com/cyanogenmod/eleven/utils/BitmapWithColors.java13
1 files changed, 13 insertions, 0 deletions
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 + "]";
+ }
}