commit | 72506b751c52f871fb6316977458029d52508935 | [log] [tgz] |
---|---|---|
author | Yorke Lee <yorkelee@google.com> | Tue Feb 05 16:25:54 2013 -0800 |
committer | Yorke Lee <yorkelee@google.com> | Wed Feb 06 10:14:07 2013 -0800 |
tree | 3743c785bc594905ed473068f9bd843844e5cfac | |
parent | 9e8446625394d885a9b617e670d3bc8105ee968d [diff] |
Fix photo alignment in RTL locales in ContactEntryListAdapter Bug: 5590280 Change-Id: I17caf1d17b9b5ccac177e66d8b4e5605e0ac6be1
diff --git a/src/com/android/contacts/common/list/ContactListItemView.java b/src/com/android/contacts/common/list/ContactListItemView.java index 89a67d5..67d8030 100644 --- a/src/com/android/contacts/common/list/ContactListItemView.java +++ b/src/com/android/contacts/common/list/ContactListItemView.java
@@ -463,6 +463,10 @@ int leftBound = getPaddingLeft(); int rightBound = width - getPaddingRight(); + if (isLayoutRtl()) { + mPhotoPosition = PhotoPosition.LEFT; + } + // Put the header in the top of the contact view (Text + underline view) if (mHeaderVisible) { mHeaderTextView.layout(leftBound + mHeaderTextIndent,