From 4b8ea49e5804b87e5052a8dff86bc667ea6e1b0c Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Thu, 11 Apr 2019 13:50:42 -0700 Subject: [PATCH] Android Embedding PR30: Make FlutterView focusable so that the keyboard can interact with it. (flutter/engine#8551) --- .../android/io/flutter/embedding/android/FlutterView.java | 4 ++++ 1 file changed, 4 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 8d4c7d3b186..21b40575a72 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 @@ -170,6 +170,10 @@ public class FlutterView extends FrameLayout { addView(flutterTextureView); break; } + + // FlutterView needs to be focusable so that the InputMethodManager can interact with it. + setFocusable(true); + setFocusableInTouchMode(true); } /**