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

Commit 1d60c5c1 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Do not hide the cursor ring when clicking on an input field.

When pressing the trackball on a text input field, do not call
setFollowedLink, which results in the cursor ring disappearing and
the WebTextView being torn down.  Fixes http://b/issue?id=2210127
parent 46a83b4e
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -3468,21 +3468,19 @@ public class WebView extends AbsoluteLayout
            if (!nativeCursorIntersects(visibleRect)) {
                return false;
            }
            nativeSetFollowedLink(true);
            nativeUpdatePluginReceivesEvents();
            WebViewCore.CursorData data = cursorData();
            mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE, data);
            playSoundEffect(SoundEffectConstants.CLICK);
            boolean isTextInput = nativeCursorIsTextInput();
            if (isTextInput || !mCallbackProxy.uiOverrideUrlLoading(
                        nativeCursorText())) {
            if (nativeCursorIsTextInput()) {
                rebuildWebTextView();
                return true;
            }
            nativeSetFollowedLink(true);
            if (!mCallbackProxy.uiOverrideUrlLoading(nativeCursorText())) {
                mWebViewCore.sendMessage(EventHub.CLICK, data.mFrame,
                        nativeCursorNodePointer());
            }
            if (isTextInput) {
                rebuildWebTextView();
                displaySoftKeyboard(true);
            }
            return true;
        }