Commit f5fa3a5
committed
refactor(android): read accessibility increments directly from ReadableArray
setAccessibilityIncrements was going ReadableArray -> ArrayList<Object> via
toArrayList() and then copying again into ArrayList<String> with an unchecked
(String) cast. Read strings directly via getString(i) into a presized list.
Drops the redundant intermediate allocation and the unsafe cast.1 parent 2696bb8 commit f5fa3a5
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
0 commit comments