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

Commit f595f3de authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Don't close all apps when touching deep shortcuts container." into...

Merge "Don't close all apps when touching deep shortcuts container." into ub-launcher3-calgary-polish
parents 2fdd8f75 946f8506
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -278,6 +278,12 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
        if (mAppsRecyclerView.getScrollBar().isNearThumb(point[0], point[1])) {
            return false;
        }

        // IF a shortcuts container is open, container should not be pulled down.
        if (mLauncher.getOpenShortcutsContainer() != null) {
            return false;
        }

        // IF scroller is at the very top OR there is no scroll bar because there is probably not
        // enough items to scroll, THEN it's okay for the container to be pulled down.
        if (mAppsRecyclerView.getScrollBar().getThumbOffset().y <= 0) {