From 5cb7cd1300ff8b20f9afce9b5e3ac73c76b96571 Mon Sep 17 00:00:00 2001 From: Akira Oshimi Date: Thu, 3 Aug 2017 11:02:34 +0900 Subject: [PATCH] Fix animation of settings button in RTL layout case The settings button overlaps with the expand indicator in RTL layout case when rotating the device to landscape mode. To fix this issue, the animation of settings button in RTL layout case should be changed. Fixes: 65228478 Test: manual - set a BiDi language and open Notification panel. Change-Id: I008b33ebcdf074639a291e7d30d3343654a2ea37 --- packages/SystemUI/src/com/android/systemui/qs/QSFooter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSFooter.java b/packages/SystemUI/src/com/android/systemui/qs/QSFooter.java index 2473335e6e158..cef7c8ac9a8c7 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSFooter.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSFooter.java @@ -170,7 +170,8 @@ public class QSFooter extends FrameLayout implements int defSpace = mContext.getResources().getDimensionPixelOffset(R.dimen.default_gear_space); mAnimator = new Builder() - .addFloat(mSettingsContainer, "translationX", -(remaining - defSpace), 0) + .addFloat(mSettingsContainer, "translationX", + isLayoutRtl() ? (remaining - defSpace) : -(remaining - defSpace), 0) .addFloat(mSettingsButton, "rotation", -120, 0) .build(); if (mAlarmShowing) {