summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Attwell <brianattwell@google.com>2014-10-16 10:35:24 -0700
committerBrian Attwell <brianattwell@google.com>2014-10-16 17:41:50 +0000
commit46027b7f219f30e1d413639caca990cb9d8aec64 (patch)
tree34e270c2bae388c67ded194d52f5e1d78f02ff64 /src
parenta869e3720924890cc40c44d67c217edf89d0138a (diff)
downloadandroid_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.java3
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();