summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorSally Yuen <sallyyuen@google.com>2021-09-09 15:57:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-09-09 15:57:38 +0000
commitcd9481d29abd982eb21a9e681a140685a66394ab (patch)
tree1fc3228fc04d4d86d12b59cd1a74ca37aaa4cdf3 /core/java/android
parentdc0c8db220b3fe7e27bdc377126d712f521b4b3b (diff)
parent5d00ad6e13d9b59824a9987216505c7f486a4d82 (diff)
Merge "Add API to inform the system a drag is initiated by an A11yAction#ACTION_DRAG_START." into sc-v2-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/View.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index f4223fb467f5..1ecdb900316d 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -5036,6 +5036,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
public static final int DRAG_FLAG_OPAQUE = 1 << 9;
/**
+ * Flag indicating that the drag was initiated with
+ * {@link AccessibilityNodeInfo.AccessibilityAction#ACTION_DRAG_START}. When
+ * {@link #startDragAndDrop(ClipData, DragShadowBuilder, Object, int)} is called, this
+ * is used by the system to perform a drag without animations.
+ */
+ public static final int DRAG_FLAG_ACCESSIBILITY_ACTION = 1 << 10;
+
+ /**
* Vertical scroll factor cached by {@link #getVerticalScrollFactor}.
*/
private float mVerticalScrollFactor;
@@ -26632,6 +26640,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* <li>{@link #DRAG_FLAG_GLOBAL_URI_READ}</li>
* <li>{@link #DRAG_FLAG_GLOBAL_URI_WRITE}</li>
* <li>{@link #DRAG_FLAG_OPAQUE}</li>
+ * <li>{@link #DRAG_FLAG_ACCESSIBILITY_ACTION}</li>
* </ul>
* @return {@code true} if the method completes successfully, or
* {@code false} if it fails anywhere. Returning {@code false} means the system was unable to