From 8df38830ae816b00f3bee4d5d72f4565c95bc5b4 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Wed, 2 May 2018 17:27:38 -0700 Subject: [PATCH] Fixes landscape quickscrub track position of rtl layout Since paddingStart is the right side for rtl, it would push the track away from the home button. Using padding left is more accurate regardless of rtl. Change-Id: I05077f3a0430893262d9f99743bc37656f455707 Fixes: 79111948 Test: landscape, with cutout, with rtl and do quickscrub --- .../android/systemui/statusbar/phone/QuickStepController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java index 6b0ac948a0363..2323c87fe9f05 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java @@ -327,7 +327,7 @@ public class QuickStepController implements GestureHelper { - mNavigationBarView.getPaddingTop(); final int x1, x2, y1, y2; if (mIsVertical) { - x1 = (width - mTrackThickness) / 2 + mNavigationBarView.getPaddingStart(); + x1 = (width - mTrackThickness) / 2 + mNavigationBarView.getPaddingLeft(); x2 = x1 + mTrackThickness; y1 = mDragPositive ? height / 2 : mTrackPadding; y2 = y1 + height / 2 - mTrackPadding;