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

* commit 'f920271828f654dec2a72240e73a940247f25315':
  Protect against focus changes after .destroy()
This commit is contained in:
John Reck
2012-08-27 16:57:02 -07:00
committed by Android Git Automerger

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;