DO NOT MERGE: Treat unknown tooltype as touch.
DNM because code has changed in master. Bug: 30182625 Change-Id: I0f226abd9eb6899d8a3ecd1c24bb1b261b3d3677
This commit is contained in:
@@ -53,7 +53,8 @@ public final class Events {
|
|||||||
*/
|
*/
|
||||||
public static boolean isTouchType(int toolType) {
|
public static boolean isTouchType(int toolType) {
|
||||||
return toolType == MotionEvent.TOOL_TYPE_FINGER
|
return toolType == MotionEvent.TOOL_TYPE_FINGER
|
||||||
|| toolType == MotionEvent.TOOL_TYPE_STYLUS;
|
|| toolType == MotionEvent.TOOL_TYPE_STYLUS
|
||||||
|
|| toolType == MotionEvent.TOOL_TYPE_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user