summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/contacts/quickcontact/QuickContactActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index f38f55253..30cced3cd 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -861,8 +861,8 @@ public class QuickContactActivity extends ContactsActivity {
// 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;
}