From d092e3a4148bbffc19dd1feca6c2f3fcd16c196a Mon Sep 17 00:00:00 2001
From: Yorke Lee
Date: Thu, 23 Jun 2016 12:23:22 -0700
Subject: [PATCH] Update documentation for View.startDragAndDrop
Bug: 29606395
Change-Id: Ibbe1a20c998986c7afffac6f5f4b25769f56a8f2
---
core/java/android/view/View.java | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 5f6ee09bf2ace..d4ac30076eaa0 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -20527,8 +20527,17 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* to the target Views. For example, it can contain flags that differentiate between a
* a copy operation and a move operation.
*
- * @param flags Flags that control the drag and drop operation. No flags are currently defined,
- * so the parameter should be set to 0.
+ * @param flags Flags that control the drag and drop operation. This can be set to 0 for no
+ * flags, or any combination of the following:
+ *
+ * - {@link #DRAG_FLAG_GLOBAL}
+ * - {@link #DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION}
+ * - {@link #DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION}
+ * - {@link #DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION}
+ * - {@link #DRAG_FLAG_GLOBAL_URI_READ}
+ * - {@link #DRAG_FLAG_GLOBAL_URI_WRITE}
+ * - {@link #DRAG_FLAG_OPAQUE}
+ *
* @return {@code true} if the method completes successfully, or
* {@code false} if it fails anywhere. Returning {@code false} means the system was unable to
* do a drag, and so no drag operation is in progress.