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

Commit ebe856a9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Expose WebView#onCheckIsTextEditor" into pi-dev

parents 12fa6b4f 15e9afcb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6664,6 +6664,7 @@ package android.webkit {
    method public abstract android.os.Handler getHandler(android.os.Handler);
    method public abstract void onActivityResult(int, int, android.content.Intent);
    method public abstract void onAttachedToWindow();
    method public default boolean onCheckIsTextEditor();
    method public abstract void onConfigurationChanged(android.content.res.Configuration);
    method public abstract android.view.inputmethod.InputConnection onCreateInputConnection(android.view.inputmethod.EditorInfo);
    method public abstract void onDetachedFromWindow();
+5 −0
Original line number Diff line number Diff line
@@ -3121,6 +3121,11 @@ public class WebView extends AbsoluteLayout
        mProvider.getViewDelegate().onActivityResult(requestCode, resultCode, data);
    }

    @Override
    public boolean onCheckIsTextEditor() {
        return mProvider.getViewDelegate().onCheckIsTextEditor();
    }

    /** @hide */
    @Override
    protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) {
+5 −0
Original line number Diff line number Diff line
@@ -424,6 +424,11 @@ public interface WebViewProvider {
        public Handler getHandler(Handler originalHandler);

        public View findFocus(View originalFocusedView);

        @SuppressWarnings("unused")
        default boolean onCheckIsTextEditor() {
            return false;
        }
    }

    interface ScrollDelegate {