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

Commit 17146c7c authored by Michael Kolb's avatar Michael Kolb
Browse files

Prevent IME from popping up on startup

    Bug: 5869028

Change-Id: Ie5c7004def16eeac4147d19fb00fc9631a17579e
parent 01cc1d1e
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;


    /**
@@ -4946,16 +4946,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;
    }