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

Commit c516cde5 authored by Yorke Lee's avatar Yorke Lee Committed by android-build-merger
Browse files

Merge \\\"Check for detached view in drag-related APIs\\\" into nyc-dev am:...

Merge \\\"Check for detached view in drag-related APIs\\\" into nyc-dev am: cdc9d7be am: 71ab2397
am: 23b3de42

Change-Id: I01b319fc237737ee1f5c323795bc6dc7228a56cc
parents 98db76bf 23b3de42
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -20543,6 +20543,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (ViewDebug.DEBUG_DRAG) {
            Log.d(VIEW_LOG_TAG, "startDragAndDrop: data=" + data + " flags=" + flags);
        }
        if (mAttachInfo == null) {
            Log.w(VIEW_LOG_TAG, "startDragAndDrop called on a detached view.");
            return false;
        }
        boolean okay = false;
        Point shadowSize = new Point();
@@ -20619,6 +20623,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (ViewDebug.DEBUG_DRAG) {
            Log.d(VIEW_LOG_TAG, "cancelDragAndDrop");
        }
        if (mAttachInfo == null) {
            Log.w(VIEW_LOG_TAG, "cancelDragAndDrop called on a detached view.");
            return;
        }
        if (mAttachInfo.mDragToken != null) {
            try {
                mAttachInfo.mSession.cancelDragAndDrop(mAttachInfo.mDragToken);
@@ -20641,6 +20649,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (ViewDebug.DEBUG_DRAG) {
            Log.d(VIEW_LOG_TAG, "updateDragShadow");
        }
        if (mAttachInfo == null) {
            Log.w(VIEW_LOG_TAG, "updateDragShadow called on a detached view.");
            return;
        }
        if (mAttachInfo.mDragToken != null) {
            try {
                Canvas canvas = mAttachInfo.mDragSurface.lockCanvas(null);