From 3067bc69d950fd472a1a0eae3975b7bb7bdff5f5 Mon Sep 17 00:00:00 2001 From: Vladislav Kaznacheev Date: Mon, 11 Jul 2016 13:52:22 -0700 Subject: [PATCH] Fix docs for DragEvent Document that getClipDescription() and getLocaState() do not return valid data when getAction() == DragEvent.ACTION_DRAG_ENDED. Bug: 30016099 Change-Id: Id98fe8c5d6f052fc51c8c9e8d55329e162bd96b1 --- core/java/android/view/DragEvent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/java/android/view/DragEvent.java b/core/java/android/view/DragEvent.java index fb482b4e33ff..b0f15b5f2329 100644 --- a/core/java/android/view/DragEvent.java +++ b/core/java/android/view/DragEvent.java @@ -102,8 +102,8 @@ import com.android.internal.view.IDragAndDropPermissions; * * * ACTION_DRAG_ENDED - * X - * X + *   + *   *   *   *   @@ -359,7 +359,7 @@ public class DragEvent implements Parcelable { * The drag handler or listener for a View can use the metadata in this object to decide if the * View can accept the dragged View object's data. *

- * This method returns valid data for all event actions. + * This method returns valid data for all event actions except for {@link #ACTION_DRAG_ENDED}. * @return The ClipDescription that was part of the ClipData sent to the system by startDrag(). */ public ClipDescription getClipDescription() { @@ -377,7 +377,7 @@ public class DragEvent implements Parcelable { * The object is intended to provide local information about the drag and drop operation. For * example, it can indicate whether the drag and drop operation is a copy or a move. *

- * This method returns valid data for all event actions. + * This method returns valid data for all event actions except for {@link #ACTION_DRAG_ENDED}. *

* @return The local state object sent to the system by startDrag(). */ -- 2.11.0