From 1afca4dce5aa16086ee701d4cef772d7f80c0004 Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Thu, 8 Jul 2021 17:13:29 +0100 Subject: [PATCH] Wrap the widget preview of the add item sheet with a scroll view Test: manual Fix: 192622015 Change-Id: I1eb676a92201970962c71194682ea70ce42b3d1b --- res/layout/add_item_confirmation_activity.xml | 15 +++++++++++---- .../widget/AddItemWidgetsBottomSheet.java | 17 +++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/res/layout/add_item_confirmation_activity.xml b/res/layout/add_item_confirmation_activity.xml index 1aeda50c5e..6fd4a8580c 100644 --- a/res/layout/add_item_confirmation_activity.xml +++ b/res/layout/add_item_confirmation_activity.xml @@ -65,12 +65,19 @@ android:alpha="0.7" android:importantForAccessibility="no"/> - + android:layout_marginVertical="16dp" + android:layout_weight="1"> + + + 0) { + mNoIntercept = true; + } + } + return super.onControllerInterceptTouchEvent(ev); + } + @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { int width = r - l; @@ -104,6 +120,7 @@ public class AddItemWidgetsBottomSheet extends AbstractSlideInView