Fix bug on Suggestion card in Quick contact UI.
Starred/Unstarred a contact should still populate suggestion card.
BUG 24941992
Change-Id: I821c8922ddf9bfc1d54e46cf6cf83e45b6f754ef
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 842a90b..2f37387 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -1321,8 +1321,10 @@
} else {
expandSuggestionList();
}
- mSuggestionCardView.setVisibility(View.GONE);
- mSuggestionList.removeAllViews();
+ if (mPreviousSuggestionForContactId != mContactData.getId()) {
+ mSuggestionCardView.setVisibility(View.GONE);
+ mSuggestionList.removeAllViews();
+ }
if (mAggregationSuggestionEngine == null) {
mAggregationSuggestionEngine = new AggregationSuggestionEngine(this);