Commit bed47d4
committed
Fix text selectable node crash
- Guard AccessibilityNodeInfo.isTextSelectable behind the API 33 runtime check so Android 12 devices do not crash while classifying nodes
- Preserve text-selectable capability reporting on supported Android versions with a defensive fallback for OEM framework issues
- Add classifier coverage for text-selectable facts so capability propagation stays covered
🤖 Auto-generated1 parent b5851f5 commit bed47d4
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- app/src
- main/java/com/enaboapps/switchify/service/techniques/nodes
- test/java/com/enaboapps/switchify/service/techniques/nodes
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
app/src/test/java/com/enaboapps/switchify/service/techniques/nodes/NodeCapabilityClassifierTest.kt
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
226 | 235 | | |
0 commit comments