diff options
author | Yorke Lee <yorkelee@google.com> | 2014-07-30 18:59:28 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-07-30 18:59:28 -0700 |
commit | 53c7dc1e9691b5b427395642a4274d37a1a15bb4 (patch) | |
tree | ac31e03fc684cd77dd416b103016880ebc54c508 /src/com/android/contacts/common/list/ContactListItemView.java | |
parent | 8052329cfcd6b392465bf5c653a0796e7a67b43c (diff) | |
download | android_packages_apps_ContactsCommon-53c7dc1e9691b5b427395642a4274d37a1a15bb4.tar.gz android_packages_apps_ContactsCommon-53c7dc1e9691b5b427395642a4274d37a1a15bb4.tar.bz2 android_packages_apps_ContactsCommon-53c7dc1e9691b5b427395642a4274d37a1a15bb4.zip |
Correctly setGravity for RTL mode
Ensure that by the time setGravity is called for RTL-related aligning,
that getLayoutDirection() returns the correct values. This value is not
usually correct in the constructor, because the view does not have a parent
to resolve it from yet.
Bug: 16162786
Change-Id: Iea6cbcd05e39a5c45641dbb1230d4be85b45ff15
Diffstat (limited to 'src/com/android/contacts/common/list/ContactListItemView.java')
-rw-r--r-- | src/com/android/contacts/common/list/ContactListItemView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/list/ContactListItemView.java b/src/com/android/contacts/common/list/ContactListItemView.java index 2bd446c3..e5de1f46 100644 --- a/src/com/android/contacts/common/list/ContactListItemView.java +++ b/src/com/android/contacts/common/list/ContactListItemView.java @@ -295,6 +295,8 @@ public class ContactListItemView extends ViewGroup mNameHighlightSequence = new ArrayList<HighlightSequence>(); mNumberHighlightSequence = new ArrayList<HighlightSequence>(); + + setLayoutDirection(View.LAYOUT_DIRECTION_LOCALE); } public void setUnknownNameText(CharSequence unknownNameText) { |