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

This commit is contained in:
John Reck
2012-08-27 16:54:18 -07:00
committed by Android (Google) Code Review

View File

@@ -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;