diff options
| author | 2011-01-16 13:28:38 -0800 | |
|---|---|---|
| committer | 2011-01-16 13:28:38 -0800 | |
| commit | 3c372789ea0b7836c6a9fe4852fac0de3f29fbbf (patch) | |
| tree | fc85e862c5a96ef0880a4198f16abfca0eaeb519 | |
| parent | b2c1a5c38834fd6fef229001d0571b7e833236ed (diff) | |
| parent | 90fc03bc493fc2c984599b198b9d50bc387134f2 (diff) | |
Merge "Don't dispatchDetachedFromWindow() if the View was not attached." into honeycomb
| -rw-r--r-- | core/java/android/view/ViewRoot.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/ViewRoot.java b/core/java/android/view/ViewRoot.java index ad9e68633958..e2285373c7e8 100644 --- a/core/java/android/view/ViewRoot.java +++ b/core/java/android/view/ViewRoot.java @@ -1780,7 +1780,7 @@ public final class ViewRoot extends Handler implements ViewParent, } void dispatchDetachedFromWindow() { - if (mView != null) { + if (mView != null && mView.mAttachInfo != null) { mView.dispatchDetachedFromWindow(); } |