Merge "DO NOT MERGE: Treat unknown tooltype as touch." into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-08-22 20:15:21 +00:00
committed by Android (Google) Code Review

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