Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40c18f59 authored by Romain Guy's avatar Romain Guy
Browse files

Prevent a leak when using View.postInvalidate(left, top, right, bottom)

Change-Id: I44c9a11d8b62d86d38f4600df2bbea13c874b991
parent 16260e73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9350,7 +9350,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;
@@ -13898,6 +13897,7 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
                        }
                        public void onReleased(InvalidateInfo element) {
                            element.target = null;
                        }
                    }, POOL_LIMIT)
            );