am 3c372789: Merge "Don\'t dispatchDetachedFromWindow() if the View was not attached." into honeycomb

* commit '3c372789ea0b7836c6a9fe4852fac0de3f29fbbf':
  Don't dispatchDetachedFromWindow() if the View was not attached.
This commit is contained in:
Romain Guy
2011-01-16 13:30:43 -08:00
committed by Android Git Automerger

View File

@@ -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();
}