commit | de750b4499763f0470c5291a518fad82052760ce | [log] [tgz] |
---|---|---|
author | Jun Mukai <mukai@google.com> | Thu Oct 01 18:35:33 2015 +0900 |
committer | Jun Mukai <mukai@google.com> | Thu Oct 01 18:45:36 2015 +0900 |
tree | 72dc0f99941b8d7aaf5fce5315c52856e2589c05 | |
parent | f8f9c10247b32c0075f0e0e30c1f38d7a61a030d [diff] |
Fix the logic for mouse event handling. The code checked if the tool type for the event is TOOL_TYPE_MOUSE. However this is not true in some cases, touchpads are using TOOL_TYPE_FINGER. InputDevice.getSources() are better in this situation. Bug: 22304981 Change-Id: Ic2ad1a472a422682617dbe25f9d81a5e5d2c020a