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

Commit 6359e320 authored by Selim Gurun's avatar Selim Gurun Committed by Android (Google) Code Review
Browse files

Merge "Update the documentation for onCreateInputConnection"

parents a502540d c92080bd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2566,6 +2566,13 @@ public class WebView extends AbsoluteLayout
        mProvider.getViewDelegate().onConfigurationChanged(newConfig);
    }

    /**
     * Creates a new InputConnection for an InputMethod to interact with the WebView.
     * This is similar to {@link View#onCreateInputConnection} but note that WebView
     * calls InputConnection methods on a thread other than the UI thread.
     * If these methods are overridden, then the overriding methods should respect
     * thread restrictions when calling View methods or accessing data.
     */
    @Override
    public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
        return mProvider.getViewDelegate().onCreateInputConnection(outAttrs);