diff options
author | 2021-05-07 20:54:30 +0000 | |
---|---|---|
committer | 2021-05-07 20:54:30 +0000 | |
commit | 14449b8794a4ebe5136b08c0faab0be77a80d1bb (patch) | |
tree | 8030549e24f6bbbe7b3ed8489095f02d7a0e9e54 | |
parent | 72de027815d452f2064d53de1187efadabe9f1bb (diff) | |
parent | 949fa9b79d13039134b1922e9b2fac5dcc5d070e (diff) |
Merge "Add NO_FOCUS_CHANGE flag to MotionEvent" into sc-dev
-rw-r--r-- | core/java/android/view/MotionEvent.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java index b054468aff7e..0483d0ba7615 100644 --- a/core/java/android/view/MotionEvent.java +++ b/core/java/android/view/MotionEvent.java @@ -485,6 +485,15 @@ public final class MotionEvent extends InputEvent implements Parcelable { public static final int FLAG_CANCELED = 0x20; /** + * This flag indicates that the event will not cause a focus change if it is directed to an + * unfocused window, even if it an {@link #ACTION_DOWN}. This is typically used with pointer + * gestures to allow the user to direct gestures to an unfocused window without bringing the + * window into focus. + * @hide + */ + public static final int FLAG_NO_FOCUS_CHANGE = 0x40; + + /** * Private flag that indicates when the system has detected that this motion event * may be inconsistent with respect to the sequence of previously delivered motion events, * such as when a pointer move event is sent but the pointer is not down. |