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

Commit 7da74d3f authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Don't crash when we get a drag-ended after being detached"

parents c8e01458 e9accff2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1162,9 +1162,11 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                }

                mDragNotifiedChildren.clear();
                if (mCurrentDrag != null) {
                    mCurrentDrag.recycle();
                    mCurrentDrag = null;
                }
            }

            // We consider drag-ended to have been handled if one of our children
            // had offered to handle the drag.