diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-08-26 20:22:23 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-26 20:22:23 +0000 |
commit | 728fc73130908157770decc593d6e3131e1efd80 (patch) | |
tree | 00c53cee244ce00482f3da04db69fdc8d778b75e | |
parent | 37ae8f4ef8921e8810c0a42fc11f3b45a72ffc03 (diff) | |
parent | c43506fc2dbe3fea6885e74ac8c67b91a0a644ff (diff) | |
download | frameworks_base-728fc73130908157770decc593d6e3131e1efd80.zip frameworks_base-728fc73130908157770decc593d6e3131e1efd80.tar.gz frameworks_base-728fc73130908157770decc593d6e3131e1efd80.tar.bz2 |
am c43506fc: am 8c674fda: Fix layout mirroring. [DO NOT MERGE]
* commit 'c43506fc2dbe3fea6885e74ac8c67b91a0a644ff':
Fix layout mirroring. [DO NOT MERGE]
-rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java index c58e312..9228d87 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java @@ -131,6 +131,7 @@ class Layout extends RelativeLayout { HardwareConfig hwConfig = getParams().getHardwareConfig(); Density density = hwConfig.getDensity(); boolean isRtl = Bridge.isLocaleRtl(getParams().getLocale()); + setLayoutDirection(isRtl? LAYOUT_DIRECTION_RTL : LAYOUT_DIRECTION_LTR); NavigationBar navBar = null; if (mBuilder.hasNavBar()) { |