From 8b90d16e3c9e5c3619a8e974c8e6328f34ab79d5 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Thu, 2 Jul 2020 12:31:10 -0700 Subject: [PATCH] FlutterView will hadle dispatching all touch events to sub-views (flutter/engine#19482) --- .../android/io/flutter/embedding/android/FlutterView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java index 465f71835a..64e1886596 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterView.java @@ -781,6 +781,11 @@ public class FlutterView extends FrameLayout implements MouseCursorPlugin.MouseC } } + @Override + public boolean onInterceptTouchEvent(MotionEvent ev) { + return true; + } + // TODO(mattcarroll): Confer with Ian as to why we need this method. Delete if possible, otherwise // add comments. private void resetWillNotDraw(boolean isAccessibilityEnabled, boolean isTouchExplorationEnabled) {