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

Commit 52b0a3ea authored by Kunhung Li's avatar Kunhung Li
Browse files

Fix scrolling goes under the expanded action bar

- Find color page ViewPager's inner RecyclerView and call
  setNestedScrollingEnabled(false) to disbale its nested scrolling.
- Video:
  https://drive.google.com/file/d/1huXw1jEW2s1lIMYMaIWZ1qW7866VjN1p/

Bug: 191099033
Test: manual
Change-Id: I7ba3596a5590f7b8f86494d91d7638f91b2eab7c
parent 7b55f1f3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -427,6 +427,8 @@ public class ColorSectionController implements CustomizationSectionController<Co
            ColorPageViewHolder(View itemView) {
                super(itemView);
                mContainer = itemView.findViewById(R.id.color_page_container);
                // Correct scrolling goes under collapsing toolbar while scrolling oclor options.
                mContainer.getChildAt(0).setNestedScrollingEnabled(false);
                /**
                 * Sets page transformer with margin to separate color pages and
                 * sets color pages' padding to not scroll to window boundary if multi-pane case