diff options
author | Brian Attwell <brianattwell@google.com> | 2014-10-16 10:35:24 -0700 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2014-10-16 17:41:50 +0000 |
commit | 46027b7f219f30e1d413639caca990cb9d8aec64 (patch) | |
tree | 34e270c2bae388c67ded194d52f5e1d78f02ff64 /src | |
parent | a869e3720924890cc40c44d67c217edf89d0138a (diff) | |
download | android_packages_apps_ContactsCommon-46027b7f219f30e1d413639caca990cb9d8aec64.tar.gz android_packages_apps_ContactsCommon-46027b7f219f30e1d413639caca990cb9d8aec64.tar.bz2 android_packages_apps_ContactsCommon-46027b7f219f30e1d413639caca990cb9d8aec64.zip |
RTL support in starred contacts
See photos in bug
Bug: 18013005
Change-Id: I035369009d1e4b7bbbacc2985697b167b1d59ef0
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/contacts/common/list/ContactTileAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/list/ContactTileAdapter.java b/src/com/android/contacts/common/list/ContactTileAdapter.java index 04f415dc..789ca026 100644 --- a/src/com/android/contacts/common/list/ContactTileAdapter.java +++ b/src/com/android/contacts/common/list/ContactTileAdapter.java @@ -562,7 +562,8 @@ public class ContactTileAdapter extends BaseAdapter { // Just line up children horizontally. for (int i = 0; i < count; i++) { - final View child = getChildAt(i); + final int rtlAdjustedIndex = isLayoutRtl() ? count - i - 1 : i; + final View child = getChildAt(rtlAdjustedIndex); // Note MeasuredWidth includes the padding. final int childWidth = child.getMeasuredWidth(); |