Commit 7c5e882
authored
fix(android): use ViewCompat.setStateDescription for API < 30 compat (#606)
* fix(android): use ViewCompat.setStateDescription for API < 30 compat
`View.stateDescription` (added in API 30) is called directly in
`TrueSheetGrabberView.updateAccessibilityValue()`, causing a fatal
`NoSuchMethodError` on Android 10 and below on every sheet present.
Replace with `ViewCompat.setStateDescription()` which is a no-op on
API < 30 and works identically on API 30+.
Introduced in #587 (v3.10.0-beta.0), still present in beta.2.
* docs: add changelog entry for ViewCompat fix1 parent a373125 commit 7c5e882
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments