From 3367c3353c11d5d9bd4ec8de21bdff24c6adb3b6 Mon Sep 17 00:00:00 2001 From: Evan Laird Date: Fri, 7 Jul 2017 13:24:56 -0400 Subject: Fix RTL drawing for QS tiles in edit mode When in RTL mode, sometimes the tile displaying the mobile signal was not properly set (was drawing as LTR). Setting it explicitly during QSIconViewImpl#updateTile() fixes the issue. Test: visual Bug: 63160044 Change-Id: If00b149ca0372fc3d51fc2ee53a43e3b74e78791 --- .../SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java index 6659650601a6..5ab3927ff098 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java @@ -96,6 +96,7 @@ public class QSIconViewImpl extends QSIconView { int padding = state.icon != null ? state.icon.getPadding() : 0; if (d != null) { d.setAutoMirrored(false); + d.setLayoutDirection(getLayoutDirection()); } iv.setImageDrawable(d); if (state.slash != null && iv instanceof SlashImageView) { -- cgit v1.2.3-59-g8ed1b