Loading src/com/android/launcher3/widget/WidgetsBottomSheet.java +14 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.util.IntProperty; import android.util.Pair; import android.view.Gravity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.animation.Interpolator; Loading Loading @@ -152,6 +153,19 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable { }); } @Override public boolean onControllerInterceptTouchEvent(MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { mNoIntercept = false; ScrollView scrollView = findViewById(R.id.widgets_table_scroll_view); if (getPopupContainer().isEventOverView(scrollView, ev) && scrollView.getScrollY() > 0) { mNoIntercept = true; } } return super.onControllerInterceptTouchEvent(ev); } protected WidgetCell addItemCell(ViewGroup parent) { WidgetCell widget = (WidgetCell) LayoutInflater.from(getContext()) .inflate(R.layout.widget_cell, parent, false); Loading Loading
src/com/android/launcher3/widget/WidgetsBottomSheet.java +14 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.util.IntProperty; import android.util.Pair; import android.view.Gravity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.animation.Interpolator; Loading Loading @@ -152,6 +153,19 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable { }); } @Override public boolean onControllerInterceptTouchEvent(MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { mNoIntercept = false; ScrollView scrollView = findViewById(R.id.widgets_table_scroll_view); if (getPopupContainer().isEventOverView(scrollView, ev) && scrollView.getScrollY() > 0) { mNoIntercept = true; } } return super.onControllerInterceptTouchEvent(ev); } protected WidgetCell addItemCell(ViewGroup parent) { WidgetCell widget = (WidgetCell) LayoutInflater.from(getContext()) .inflate(R.layout.widget_cell, parent, false); Loading