Merge "Prevent a leak when using View.postInvalidate(left, top, right, bottom)"
This commit is contained in:
@@ -9362,7 +9362,6 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
|
||||
if (mAttachInfo != null) {
|
||||
mAttachInfo.mHandler.removeMessages(AttachInfo.INVALIDATE_MSG, this);
|
||||
mAttachInfo.mHandler.removeMessages(AttachInfo.INVALIDATE_RECT_MSG, this);
|
||||
}
|
||||
|
||||
mCurrentAnimation = null;
|
||||
@@ -13910,6 +13909,7 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
}
|
||||
|
||||
public void onReleased(InvalidateInfo element) {
|
||||
element.target = null;
|
||||
}
|
||||
}, POOL_LIMIT)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user