Android Embedding PR30: Make FlutterView focusable so that the keyboard can interact with it. (flutter/engine#8551)

This commit is contained in:
Matt Carroll 2019-04-11 13:50:42 -07:00 committed by GitHub
parent dc2e268020
commit 4b8ea49e58

View File

@ -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);
}
/**