Avoiding swiping down from the from the extended touchable region around the notch in Widgets
Bug: 141697444 Change-Id: I8edd6a05e34c8a7e91dab1757938d40efffb766f
This commit is contained in:
@@ -69,7 +69,12 @@ public final class Widgets extends LauncherInstrumentation.VisibleContainer {
|
||||
"want to fling backwards in widgets")) {
|
||||
LauncherInstrumentation.log("Widgets.flingBackward enter");
|
||||
final UiObject2 widgetsContainer = verifyActiveContainer();
|
||||
mLauncher.scroll(widgetsContainer, Direction.UP, 1f, null, FLING_STEPS);
|
||||
mLauncher.scroll(
|
||||
widgetsContainer,
|
||||
Direction.UP,
|
||||
1f,
|
||||
new Rect(0, 0, widgetsContainer.getVisibleBounds().width(), 0),
|
||||
FLING_STEPS);
|
||||
try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung back")) {
|
||||
verifyActiveContainer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user