Small refactor of HandwritingInitiator State

This simplifies the implementation of showing the error message for
unsupported text fields.

Bug: 297962571
Test: atest StylusHandwritingTest
Change-Id: I19b4ee8bff0c1a086e1b3418795652bc46af2ced
1 file changed