You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: wire Android 14+ stylus handwriting through recognizer facade
Replaced the logging-only onStartStylusHandwriting stub with a full
session flow that uses StrokeRecognizerRegistry:
- onPrepareStylusHandwriting: clears stroke buffers
- onStartStylusHandwriting: checks recognizer readiness for the active
locale; shows a toast and returns false when no addon is installed
- onStylusHandwritingMotionEvent: collects MotionEvent points into
Stroke objects, including historical samples for smooth ink
- onFinishStylusHandwriting: runs recognition, commits the top
candidate to the InputConnection
When no recognizer addon is installed, the system falls back to the
standard touch input path. The preference toggle still gates the
entire flow.
<stringname="pref__keyboard__stylus_handwriting__summary"comment="Preference summary">Android 14+ devices with a compatible stylus can write directly into text fields. Recognizer support is staged; this toggle reserves the system entry point.</string>
849
+
<stringname="pref__keyboard__stylus_handwriting__summary"comment="Preference summary">Android 14+ devices with a compatible stylus can write directly into text fields. Install a handwriting recognizer addon for recognition support.</string>
850
+
<stringname="handwriting__no_recognizer"comment="Toast shown when stylus handwriting starts but no recognizer addon is installed">No handwriting recognizer installed. Install a recognizer addon from Settings → Addons.</string>
0 commit comments