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

Commit f9202718 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Protect against focus changes after .destroy()" into jb-mr1-dev

parents 81efbb30 1612fab0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6987,6 +6987,8 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc

    @Override
    public boolean requestFocus(int direction, Rect previouslyFocusedRect) {
        // Check if we are destroyed
        if (mWebViewCore == null) return false;
        // FIXME: If a subwindow is showing find, and the user touches the
        // background window, it can steal focus.
        if (mFindIsUp) return false;