forked from firka/flutter
Android Embedding PR30: Make FlutterView focusable so that the keyboard can interact with it. (flutter/engine#8551)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user