Commit 79e6df5
committed
Scope Samsung keyboard suggestion interception to checklist edits
SamsungInputConnection.commitText() suppressed every spellcheck/autocorrect
commit that carried a SuggestionSpan, in order to protect checklist
(CheckableSpan) spans from being corrupted when the Samsung keyboard replaced
editor content.
On One UI 7/8 (e.g. Galaxy S25, Android 16) this fires on ordinary prose too,
so autocorrect-on-space is never applied and typos "stick" instead of being
corrected. The bug it originally guarded against was tied to the in-keyboard
Grammarly plugin that Samsung removed in 2024.
Only take the protective path when the edited region (the composing region, or
the selection when there is none) actually contains a CheckableSpan; otherwise
forward to the keyboard's normal commit so autocorrect works. Checklist
protection is unchanged where it is actually needed.1 parent b8e570b commit 79e6df5
2 files changed
Lines changed: 34 additions & 1 deletion
File tree
- Simplenote/src/main/java/com/automattic/simplenote/widgets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
76 | 104 | | |
77 | 105 | | |
78 | 106 | | |
| |||
81 | 109 | | |
82 | 110 | | |
83 | 111 | | |
84 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
85 | 117 | | |
86 | 118 | | |
87 | 119 | | |
| |||
0 commit comments