commit | e6b8a790ab9b0698c911708ba0ae194c701499b0 | [log] [tgz] |
---|---|---|
author | Chris Banes <chrisbanes@google.com> | Thu Jul 03 11:41:11 2014 +0100 |
committer | Chris Banes <chrisbanes@google.com> | Thu Jul 03 13:25:47 2014 +0100 |
tree | ca2492f5ab1e01d240b1dbbf0f172e5d127fa54b | |
parent | 2e87d2cf6b8a4f2d5dc3f738681f1909074f32fb [diff] |
Update Contact's Palette integration Needed for I06f1efefcdfa3d22578653b5f5da3d61a064b5d5 Change-Id: Ia19627db83af0f387c6646e881a5625b29d499aa
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java index f38f552..30cced3 100644 --- a/src/com/android/contacts/quickcontact/QuickContactActivity.java +++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -861,8 +861,8 @@ // Author of Palette recommends using 24 colors when analyzing profile photos. final int NUMBER_OF_PALETTE_COLORS = 24; final Palette palette = Palette.generate(bitmap, NUMBER_OF_PALETTE_COLORS); - if (palette != null && palette.getVibrantColor() != null) { - return palette.getVibrantColor().getRgb(); + if (palette != null && palette.getVibrantSwatch() != null) { + return palette.getVibrantSwatch().getRgb(); } return 0; }