Merge "Tapl Widgets: Don't use container width as gesture margin" into sc-v2-dev am: 79350ef1bc

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16365181

Change-Id: I2d7400327fc04cf07b872a0769095dfd7859cd46
This commit is contained in:
Prabir Pradhan
2021-12-01 11:52:54 +00:00
committed by Automerger Merge Worker

View File

@@ -77,7 +77,8 @@ public final class Widgets extends LauncherInstrumentation.VisibleContainer {
mLauncher.scroll(
widgetsContainer,
Direction.UP,
new Rect(0, 0, mLauncher.getVisibleBounds(widgetsContainer).width(), 0),
new Rect(0, 0, mLauncher.getRightGestureMarginInContainer(widgetsContainer) + 1,
0),
FLING_STEPS, false);
try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung back")) {
verifyActiveContainer();