File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ public boolean deleteSurroundingText(int leftLength, int rightLength) {
422422 private final Rect mViewRectViewport = new Rect ();
423423 private final RectF mVisibleContentRect = new RectF ();
424424 private boolean mGLViewportEmpty = false ;
425- WebViewInputConnection mInputConnection = new WebViewInputConnection () ;
425+ WebViewInputConnection mInputConnection = null ;
426426
427427
428428 /**
@@ -4946,16 +4946,14 @@ WebViewCore.CursorData cursorDataNoPosition() {
49464946 }
49474947 }
49484948
4949- @ Override
4950- public boolean onCheckIsTextEditor () {
4951- return true ;
4952- }
4953-
49544949 @ Override
49554950 public InputConnection onCreateInputConnection (EditorInfo outAttrs ) {
49564951 outAttrs .imeOptions = EditorInfo .IME_FLAG_NO_FULLSCREEN
49574952 | EditorInfo .TYPE_CLASS_TEXT
49584953 | EditorInfo .TYPE_TEXT_VARIATION_NORMAL ;
4954+ if (mInputConnection == null ) {
4955+ mInputConnection = new WebViewInputConnection ();
4956+ }
49594957 return mInputConnection ;
49604958 }
49614959
You can’t perform that action at this time.
0 commit comments