summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2015-08-04 11:56:44 -0700
committerDeepanshu Gupta <deepanshu@google.com>2015-08-25 12:06:58 -0700
commit8c674fda8939c2d30f85e0341b70d9f3edd04d6c (patch)
treea2deed3a36726341e14047a15b8df1d05f40d150 /tools/layoutlib
parent7aa36129403de74c485f286d290787e38565ddae (diff)
downloadframeworks_base-8c674fda8939c2d30f85e0341b70d9f3edd04d6c.zip
frameworks_base-8c674fda8939c2d30f85e0341b70d9f3edd04d6c.tar.gz
frameworks_base-8c674fda8939c2d30f85e0341b70d9f3edd04d6c.tar.bz2
Fix layout mirroring. [DO NOT MERGE]
Change-Id: I7db398aa2d11dac1210e84922138f78f0c23bb9b (cherry picked from commit a9090705efcc44f015486944e5aeb926173a7968)
Diffstat (limited to 'tools/layoutlib')
-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()) {