diff options
| author | 2024-04-10 19:20:35 +0000 | |
|---|---|---|
| committer | 2024-04-19 02:54:54 +0000 | |
| commit | 97ae05c72aeda4fdc3d8f77864b1b6c653536bc6 (patch) | |
| tree | bb4a0ad7090b1d17861af3f6b5735b1b1136231c /libs/androidfw/StringPool.cpp | |
| parent | 964cb83bfb6aebb74d3b3e4bb2181c73ecd49f23 (diff) | |
Make handwriting surface ignore touch when stylus is down
With support of simultaneous touch and stylus feature, we now allow
user to simulataneous touch and stylus on different windows. However,
stylus handwriting is a special case (using spy surface) can receive
stylus and finger touch in the app, which can steal focus and end stylus
handwriting session abruptly.
This change makes the app and system areas untouchable while stylus is
down to prevent accidental touches. When stylus is UP, its reverted to
NOT_TOUCHABLE (i.e. lets the touch passthrough).
Bug: 332850063
Test: atest StylusHandwritingTest
Change-Id: I927cee4e8ebb727f157d24b81558ccbe55696d14
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions