commit | c1f1d85f0461173752ce6a21464fd4ab16001d2b | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Fri Sep 01 22:52:30 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Wed Sep 20 12:53:44 2023 +0000 |
tree | a44cec88e894371c734a1413a5d0024e5b35d9a9 | |
parent | e0f1e64ff0fc7e7a44b155beef1d45c495ce298a [diff] |
Support key gesture detection for stylus tail button in SysUI Here, we add gesture detection logic for the stylus tail button in SysUI. The notes task will only be shown immediately on the UP event of the first key press of a key gesture. A long press will not do anything for now. If there is a multi-press (e.g. double-press, triple-press), only the first press will react to the event. Bug: 298056902 Test: manual with stylus Test: atest NoteTaskInitializerTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:515a1625d4948f2fdb1ef6e966fe4469b0ed4d9f) Merged-In: I90391f411d84ec5c749bb4d8cdefd7e610539e6e Change-Id: I90391f411d84ec5c749bb4d8cdefd7e610539e6e