Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9fdd9fd authored by Michael Kolb's avatar Michael Kolb Committed by Android (Google) Code Review
Browse files

Merge "Prevent IME from popping up on startup"

parents ca917ac1 17146c7c
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ public class WebView extends AbsoluteLayout
    private final Rect mViewRectViewport = new Rect();
    private final RectF mVisibleContentRect = new RectF();
    private boolean mGLViewportEmpty = false;
    WebViewInputConnection mInputConnection = new WebViewInputConnection();
    WebViewInputConnection mInputConnection = null;


    /**
@@ -4941,16 +4941,14 @@ public class WebView extends AbsoluteLayout
        }
    }

    @Override
    public boolean onCheckIsTextEditor() {
        return true;
    }

    @Override
    public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
        outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN
                | EditorInfo.TYPE_CLASS_TEXT
                | EditorInfo.TYPE_TEXT_VARIATION_NORMAL;
        if (mInputConnection == null) {
            mInputConnection = new WebViewInputConnection();
        }
        return mInputConnection;
    }