From 1fcf19f44e98759d4342c26ae82973a66a069db5 Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Thu, 11 Apr 2019 13:33:29 -0700 Subject: [PATCH] Android Embedding PR30: Make FlutterView focusable so that the keyboard can interact with it. --- .../android/io/flutter/embedding/android/FlutterView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/platform/android/io/flutter/embedding/android/FlutterView.java b/shell/platform/android/io/flutter/embedding/android/FlutterView.java index 8d4c7d3b186b5..21b40575a7280 100644 --- a/shell/platform/android/io/flutter/embedding/android/FlutterView.java +++ b/shell/platform/android/io/flutter/embedding/android/FlutterView.java @@ -170,6 +170,10 @@ private void init() { addView(flutterTextureView); break; } + + // FlutterView needs to be focusable so that the InputMethodManager can interact with it. + setFocusable(true); + setFocusableInTouchMode(true); } /**