summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Taran Singh <tarandeep@google.com> 2023-08-07 20:48:48 +0000
committer Taran Singh <tarandeep@google.com> 2023-08-07 21:50:02 +0000
commit932aa772c0ba363762ba95abee0c1cc356851d52 (patch)
tree309846b35cc33a1dee455a741f90f82f9145f88b /libs/hwui/FrameInfoVisualizer.cpp
parent5e483b0490a0658b5204e9cbd374fa3f4dafb1b2 (diff)
Invalidate stylus handwriting availability cache
In [1] we introduced caching of attributes that determines if stylus handwriting is available. The strategy used to invalidate cache on IME unbind. However, a stale value of InputMethodInfo#supportsStylusHandwriting can be cached if IMM#isStylusHandwritingAvailable() previous IME unbinds and the next one isn't yet connected. A better approach would be to cache the value on the new IME service connection. [1]: I6d89d82589e4946e07bfbc4b97811fe4537b1a9b Bug: 288618291 Bug: 294162601 Test: atest InputMethodServiceLifecycleTest Change-Id: I35013b6194a67656aefca004e69cfc64f12c1e88
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions