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

Commit 1612fab0 authored by John Reck's avatar John Reck
Browse files

Protect against focus changes after .destroy()

 Bug: 7026042

Change-Id: I656b612a4b5304225863d3100a98bf2b97d9890d
parent af188654
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6981,6 +6981,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;