From 054ddd90da7c9824c121c68801a8662f6f35863a Mon Sep 17 00:00:00 2001 From: gkipnis Date: Tue, 15 Mar 2016 13:36:12 -0700 Subject: QuickContact Expand/Collapse Button removal fixed When QuckContact is displayed, if there are 4 or more contact fields (email/phone#/etc...), then an Expand/Collapse button is displayed (More/Less). When the contact is edited and only 3 fields remain, this button is supposed to be removed, but was remaining in the view. Change-Id: Ic8b55a4bc551a4b05eda5cead96b4bcf4fa2b624 Ticket-Id: Cyngnos-2225 --- src/com/android/contacts/quickcontact/ExpandingEntryCardView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java index c45ed41b8..ba4021b6c 100644 --- a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java +++ b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java @@ -416,7 +416,7 @@ public class ExpandingEntryCardView extends CardView { mEntriesViewGroup.addView(view); } - removeView(mExpandCollapseButton); + mContainer.removeView(mExpandCollapseButton); if (mCollapsedEntriesCount < mNumEntries && mExpandCollapseButton.getParent() == null && !mIsAlwaysExpanded) { mContainer.addView(mExpandCollapseButton, -1); -- cgit v1.2.3