Merge "Don't dispatchDetachedFromWindow() if the View was not attached." into honeycomb

This commit is contained in:
Romain Guy
2011-01-16 13:28:38 -08:00
committed by Android (Google) Code Review

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