Merge "Adjust MotionEvent.FLAG_CANCELED flag to public"
This commit is contained in:
@@ -49266,6 +49266,7 @@ package android.view {
|
||||
field public static final int EDGE_LEFT = 4; // 0x4
|
||||
field public static final int EDGE_RIGHT = 8; // 0x8
|
||||
field public static final int EDGE_TOP = 1; // 0x1
|
||||
field public static final int FLAG_CANCELED = 32; // 0x20
|
||||
field public static final int FLAG_WINDOW_IS_OBSCURED = 1; // 0x1
|
||||
field public static final int FLAG_WINDOW_IS_PARTIALLY_OBSCURED = 2; // 0x2
|
||||
field public static final int INVALID_POINTER_ID = -1; // 0xffffffff
|
||||
|
||||
@@ -478,10 +478,15 @@ public final class MotionEvent extends InputEvent implements Parcelable {
|
||||
public static final int FLAG_IS_GENERATED_GESTURE = 0x8;
|
||||
|
||||
/**
|
||||
* This flag associated with {@link #ACTION_POINTER_UP}, this indicates that the pointer
|
||||
* has been canceled. Typically this is used for palm event when the user has accidental
|
||||
* touches.
|
||||
* @hide
|
||||
* This flag is only set for events with {@link #ACTION_POINTER_UP} and {@link #ACTION_CANCEL}.
|
||||
* It indicates that the pointer going up was an unintentional user touch. When FLAG_CANCELED
|
||||
* is set, the typical actions that occur in response for a pointer going up (such as click
|
||||
* handlers, end of drawing) should be aborted. This flag is typically set when the user was
|
||||
* accidentally touching the screen, such as by gripping the device, or placing the palm on the
|
||||
* screen.
|
||||
*
|
||||
* @see #ACTION_POINTER_UP
|
||||
* @see #ACTION_CANCEL
|
||||
*/
|
||||
public static final int FLAG_CANCELED = 0x20;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user