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

This commit is contained in:
Prabir Pradhan
2021-12-01 11:39:11 +00:00
committed by Android (Google) Code Review

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();