diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-08-26 05:58:16 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-26 05:58:16 +0000 |
commit | c43506fc2dbe3fea6885e74ac8c67b91a0a644ff (patch) | |
tree | 54511d09cabf182b9d73967254f9fe7e2eeb3f91 | |
parent | 918e62f1cb7e5802cfb7435dd606380fa5d3a278 (diff) | |
parent | 8c674fda8939c2d30f85e0341b70d9f3edd04d6c (diff) | |
download | frameworks_base-c43506fc2dbe3fea6885e74ac8c67b91a0a644ff.zip frameworks_base-c43506fc2dbe3fea6885e74ac8c67b91a0a644ff.tar.gz frameworks_base-c43506fc2dbe3fea6885e74ac8c67b91a0a644ff.tar.bz2 |
am 8c674fda: Fix layout mirroring. [DO NOT MERGE]
* commit '8c674fda8939c2d30f85e0341b70d9f3edd04d6c':
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()) { |