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

Commit 581c35d1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make DragEvent.getClipDescription() return null for ACTION_DRAG_ENDED"

parents 10ef9412 cd84cfab
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5508,6 +5508,9 @@ public final class ViewRootImpl implements ViewParent,
                mCurrentDragView = null;    // Start the current-recipient tracking
                mDragDescription = event.mClipDescription;
            } else {
                if (what == DragEvent.ACTION_DRAG_ENDED) {
                    mDragDescription = null;
                }
                event.mClipDescription = mDragDescription;
            }

@@ -5555,7 +5558,6 @@ public final class ViewRootImpl implements ViewParent,

                // Report the drop result when we're done
                if (what == DragEvent.ACTION_DROP) {
                    mDragDescription = null;
                    try {
                        Log.i(mTag, "Reporting drop result: " + result);
                        mWindowSession.reportDropResult(mWindow, result);