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

Commit 3067bc69 authored by Vladislav Kaznacheev's avatar Vladislav Kaznacheev
Browse files

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
parent 0e6f2097
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;">&nbsp;</td>
 *      <td style="text-align: center;">&nbsp;</td>
 *      <td style="text-align: center;">&nbsp;</td>
 *      <td style="text-align: center;">&nbsp;</td>
 *      <td style="text-align: center;">&nbsp;</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().
     */