summaryrefslogtreecommitdiff
path: root/src/com/android
diff options
context:
space:
mode:
authorKunhung Li <kunhungli@google.com>2022-04-15 18:50:39 +0800
committerKunhung Li <kunhungli@google.com>2022-04-15 19:05:45 +0800
commit52b0a3eaca446ce5b75f3fa0b066a36fc55834bd (patch)
tree1a78c1a14985626dc427d5fc5fc6128fef773e45 /src/com/android
parent7b55f1f36aefecb7f1218a81e6d76747e57f16d1 (diff)
downloadThemePicker-52b0a3eaca446ce5b75f3fa0b066a36fc55834bd.tar.gz
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
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/customization/model/color/ColorSectionController.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/customization/model/color/ColorSectionController.java b/src/com/android/customization/model/color/ColorSectionController.java
index afd5ebfa..18651468 100644
--- a/src/com/android/customization/model/color/ColorSectionController.java
+++ b/src/com/android/customization/model/color/ColorSectionController.java
@@ -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