summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErica Chang <echang@cyngn.com>2016-07-15 08:00:19 -0700
committerErica Chang <echang@cyngn.com>2016-07-15 08:10:42 -0700
commit604c2d0ae571b307f3661ce5002441f49a64c2ed (patch)
treeed97d6b639343b98391009cbeb43d28dafe94103
parent1e847a28e7c501abe86ddf323753452f4e16a4a6 (diff)
downloadpackages_apps_Contacts-604c2d0ae571b307f3661ce5002441f49a64c2ed.tar.gz
packages_apps_Contacts-604c2d0ae571b307f3661ce5002441f49a64c2ed.tar.bz2
packages_apps_Contacts-604c2d0ae571b307f3661ce5002441f49a64c2ed.zip
Contacts : fix quick contacts card invite entry
-QuickContactsCard's InCall "directory search" may be too long in certain languages and overlap with the "invite" text, need to line wrap Change-Id: Id5d6f069a657480ac63a928d37dd8adcc111d813 Issue-Id: CD-3117
-rw-r--r--src/com/android/contacts/quickcontact/ExpandingEntryCardView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
index 4039f0b8b..c51d16605 100644
--- a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
+++ b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
@@ -899,6 +899,13 @@ public class ExpandingEntryCardView extends CardView {
thirdTextView.setTag(new EntryTag(entry.getId(), entry.getThirdIntent(), entry));
thirdTextView.setTextColor(mThemeColor);
thirdTextView.setVisibility(View.VISIBLE);
+ // set rule to make sure the header wraps before the third text
+ if (header != null) {
+ RelativeLayout.LayoutParams headerLayoutParams =
+ (RelativeLayout.LayoutParams) header.getLayoutParams();
+ headerLayoutParams.addRule(RelativeLayout.START_OF, thirdTextView.getId());
+ header.setLayoutParams(headerLayoutParams);
+ }
} else {
thirdTextView.setVisibility(View.GONE);
}