Merge "Don't dispatchDetachedFromWindow() if the View was not attached." into honeycomb
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user