Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 16b6b510 authored by Taran Singh's avatar Taran Singh
Browse files

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
Merged-In: I35013b6194a67656aefca004e69cfc64f12c1e88
parent e6b31d1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment