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
This commit is contained in:
Matthew Ng
2018-05-02 17:27:38 -07:00
parent e09cde0cd9
commit 8df38830ae

View File

@@ -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;