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

Commit 3280bff9 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Scroll to beginning when showing QSCustomizer"

parents 34085b36 05dd5ff1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ public class QSCustomizer extends LinearLayout {
     */
    void show(int x, int y, TileAdapter tileAdapter) {
        if (!isShown) {
            mRecyclerView.getLayoutManager().scrollToPosition(0);
            int[] containerLocation = findViewById(R.id.customize_container).getLocationOnScreen();
            mX = x - containerLocation[0];
            mY = y - containerLocation[1];
@@ -131,6 +132,7 @@ public class QSCustomizer extends LinearLayout {

    void showImmediately() {
        if (!isShown) {
            mRecyclerView.getLayoutManager().scrollToPosition(0);
            setVisibility(VISIBLE);
            mClipper.cancelAnimator();
            mClipper.showBackground();