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

Skip to content
Commit 2d2bbe4c authored by Taran Singh's avatar Taran Singh
Browse files

More accurate editorTooltype from handwriting receiver

We used to propagate user tap from ViewRoot to the IME, which does not
preserve EditorInfo#initialToolType across different ViewRoots.
By switching to using handwriting listener(spy), we can always provide more
accurate initialToolType and onUpdateEditorToolType to IME.

EditorInfo#initialToolType is essential for apps and previously a stylus tap
that results in navigation to new Window/ViewRoot wasn't set. With the new
flow, the initial value could be set either when
HandwritingModeController receives a new toolType or last known value.

Bug: 298149197
Test: atest StylusHandwritingTest
Change-Id: I86952bc6591c9f6d29ab2dc94027d4903db6a762
parent e4d06ae4
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