diff options
| author | 2016-07-11 13:52:22 -0700 | |
|---|---|---|
| committer | 2016-07-11 13:52:22 -0700 | |
| commit | 3067bc69d950fd472a1a0eae3975b7bb7bdff5f5 (patch) | |
| tree | 49fc138c29dbb386a226441de55d1116e3562d18 | |
| parent | 0e6f2097d3fd20d861444a94c529844b014e8375 (diff) | |
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
| -rw-r--r-- | core/java/android/view/DragEvent.java | 8 |
1 files 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; * </tr> * <tr> * <td>ACTION_DRAG_ENDED</td> - * <td style="text-align: center;">X</td> - * <td style="text-align: center;">X</td> + * <td style="text-align: center;"> </td> + * <td style="text-align: center;"> </td> * <td style="text-align: center;"> </td> * <td style="text-align: center;"> </td> * <td style="text-align: center;"> </td> @@ -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. * <p> - * 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. * <p> - * This method returns valid data for all event actions. + * This method returns valid data for all event actions except for {@link #ACTION_DRAG_ENDED}. * </p> * @return The local state object sent to the system by startDrag(). */ |