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

Commit 378f0280 authored by Grace Kloba's avatar Grace Kloba
Browse files

Remove long_press when WebView lost window focus.

Reset touch mode too.

Fix http://b/issue?id=2542711.

Also move dismissZoomControl() before calling
super.onDetachedFromWindow(). This is a guess to
fix http://b/issue?id=2547574
parent 092cfaaa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4012,8 +4012,8 @@ public class WebView extends AbsoluteLayout
    @Override
    protected void onDetachedFromWindow() {
        clearTextEntry(false);
        super.onDetachedFromWindow();
        dismissZoomControl();
        super.onDetachedFromWindow();
    }

    /**
@@ -4076,6 +4076,8 @@ public class WebView extends AbsoluteLayout
            }
            mGotKeyDown = false;
            mShiftIsPressed = false;
            mPrivateHandler.removeMessages(SWITCH_TO_LONGPRESS);
            mTouchMode = TOUCH_DONE_MODE;
            if (mNativeClass != 0) {
                nativeRecordButtons(false, false, true);
            }