DO NOT MERGE: Treat unknown tooltype as touch.

am: 0c28f3bda3

Change-Id: Idbee59d7450b63735291f5218784c87f762ed19b
This commit is contained in:
Steve McKay
2016-08-23 14:38:27 +00:00
committed by android-build-merger

View File

@@ -53,7 +53,8 @@ public final class Events {
*/
public static boolean isTouchType(int toolType) {
return toolType == MotionEvent.TOOL_TYPE_FINGER
|| toolType == MotionEvent.TOOL_TYPE_STYLUS;
|| toolType == MotionEvent.TOOL_TYPE_STYLUS
|| toolType == MotionEvent.TOOL_TYPE_UNKNOWN;
}
/**