Skip to content

Commit 846089e

Browse files
gitofleonardoneobuddy89
authored andcommitted
Launcher3: Fix rtl layout error
Fix location of AllAppsEduView not center in rtl layout. Test: manual - swipe up to trigger AllAppsEduView in different situation Change-Id: I8185148fda34200052fd520d2ca865b81bca270a Signed-off-by: Pranav Vashi <[email protected]>
1 parent 7a59f20 commit 846089e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickstep/src/com/android/quickstep/views/AllAppsEduView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private void init(Launcher launcher) {
262262
DeviceProfile grid = launcher.getDeviceProfile();
263263
DragLayer.LayoutParams lp = new DragLayer.LayoutParams(mWidthPx, mMaxHeightPx);
264264
lp.ignoreInsets = true;
265-
lp.leftMargin = (grid.widthPx - mWidthPx) / 2;
265+
lp.setMarginStart((grid.widthPx - mWidthPx) / 2);
266266
lp.topMargin = grid.heightPx - grid.hotseatBarSizePx - mMaxHeightPx;
267267
setLayoutParams(lp);
268268
}

0 commit comments

Comments
 (0)