Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 275aa73e authored by Vadim Tryshev's avatar Vadim Tryshev Committed by android-build-merger
Browse files

Merge "Better diags in ensureWorkspaceIsScrollable" into ub-launcher3-qt-dev

am: d4eed0b1

Change-Id: I7f4f8f07ae556820575a2451d4b038cefad4ae15
parents 609c144d d4eed0b1
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -114,13 +114,17 @@ public final class Workspace extends Home {
    public void ensureWorkspaceIsScrollable() {
        final UiObject2 workspace = verifyActiveContainer();
        if (!isWorkspaceScrollable(workspace)) {
            try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
                    "dragging icon to a second page of workspace to make it scrollable")) {
                dragIconToWorkspace(
                        mLauncher,
                        getHotseatAppIcon("Chrome"),
                        new Point(mLauncher.getDevice().getDisplayWidth(),
                            workspace.getVisibleBounds().centerY()), "deep_shortcuts_container");
                                workspace.getVisibleBounds().centerY()),
                        "deep_shortcuts_container");
                verifyActiveContainer();
            }
        }
        assertTrue("Home screen workspace didn't become scrollable",
                isWorkspaceScrollable(workspace));
    }