Update suggestion card after new tint color is extracted am: 1d86a67a46
am: b7635dd45e
* commit 'b7635dd45ea61e4d0ab2b51aeb8b370fafec827c':
Update suggestion card after new tint color is extracted
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index d4f961b..4d7e0b0 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -494,6 +494,9 @@
@Override
public void onAggregationSuggestionChange() {
+ if (mAggregationSuggestionEngine == null) {
+ return;
+ }
mSuggestions = mAggregationSuggestionEngine.getSuggestions();
mCollapsedSuggestionCardView.setVisibility(View.GONE);
mExpandSuggestionCardView.setVisibility(View.GONE);
@@ -2307,6 +2310,8 @@
if (imageViewDrawable == mPhotoView.getDrawable()) {
mHasComputedThemeColor = true;
setThemeColor(palette);
+ // update color and photo in suggestion card
+ onAggregationSuggestionChange();
}
}
}.execute();