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

Commit 460e2c42 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Scroll AllApps to top when new padding is set." into sc-v2-dev

parents 25e84690 2397d600
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -624,6 +624,9 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
        for (int i = 0; i < mAH.length; i++) {
            mAH[i].padding.top = padding;
            mAH[i].applyPadding();
            if (mAH[i].recyclerView != null) {
                mAH[i].recyclerView.scrollToTop();
            }
        }
        mHeaderTop = mHeader.getTop();
    }
+2 −0
Original line number Diff line number Diff line
@@ -47,6 +47,8 @@ public interface FloatingHeaderRow {

    /**
     * Scrolls the content vertically.
     * @param scroll scrolled distance in pixels for active recyclerview.
     * @param isScrolledOut bool to determine if row is scrolled out of view
     */
    void setVerticalScroll(int scroll, boolean isScrolledOut);