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

This commit is contained in:
Prabir Pradhan authored and Android (Google) Code Review committed 2021-12-01 11:39:11 +00:00
commit 79350ef1bc
1 file changed
+2 -1
@@ -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();