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

Commit 3d672d3f authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am c43db491: Merge "Fix android:focusableInTouchMode support" into jb-dev

* commit 'c43db491':
  Fix android:focusableInTouchMode support
parents 9a40e307 c43db491
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -1598,8 +1598,6 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
    private void init() {
        OnTrimMemoryListener.init(mContext);
        mWebView.setWillNotDraw(false);
        mWebView.setFocusable(true);
        mWebView.setFocusableInTouchMode(true);
        mWebView.setClickable(true);
        mWebView.setLongClickable(true);

@@ -5767,14 +5765,15 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
            return false;
        }

        if (!mWebView.isFocused()) {
            mWebView.requestFocus();
        }

        if (mInputDispatcher == null) {
            return false;
        }

        if (mWebView.isFocusable() && mWebView.isFocusableInTouchMode()
                && !mWebView.isFocused()) {
            mWebView.requestFocus();
        }

        if (mInputDispatcher.postPointerEvent(ev, getScrollX(),
                getScrollY() - getTitleHeight(), mZoomManager.getInvScale())) {
            mInputDispatcher.dispatchUiEvents();
+1 −0
Original line number Diff line number Diff line
@@ -634,6 +634,7 @@ please see styles_device_defaults.xml.

    <style name="Widget.WebView">
        <item name="android:focusable">true</item>
        <item name="android:focusableInTouchMode">true</item>
        <item name="android:scrollbars">horizontal|vertical</item>
    </style>