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:
Steve McKay
2016-07-20 18:25:47 -07:00
parent f2598319c0
commit 0c28f3bda3

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;
}
/**