From 8c674fda8939c2d30f85e0341b70d9f3edd04d6c Mon Sep 17 00:00:00 2001 From: Deepanshu Gupta Date: Tue, 4 Aug 2015 11:56:44 -0700 Subject: Fix layout mirroring. [DO NOT MERGE] Change-Id: I7db398aa2d11dac1210e84922138f78f0c23bb9b (cherry picked from commit a9090705efcc44f015486944e5aeb926173a7968) --- tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java | 1 + 1 file changed, 1 insertion(+) 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()) { -- cgit v1.1