summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2015-08-26 05:58:16 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-26 05:58:16 +0000
commitc43506fc2dbe3fea6885e74ac8c67b91a0a644ff (patch)
tree54511d09cabf182b9d73967254f9fe7e2eeb3f91
parent918e62f1cb7e5802cfb7435dd606380fa5d3a278 (diff)
parent8c674fda8939c2d30f85e0341b70d9f3edd04d6c (diff)
downloadframeworks_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.java1
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()) {