Commit e300be9
Gilles Debunne
IOOB is Suggestions
Bug 5555929
This problem only happens when in landscape extracted text mode.
A suggestion pick from the popup window replaces the text in the ExtractedText,
when it should do it in the underlying source EditText instead.
When the replacement text is longer than the replaced text and is at the end
of the text, an IOOB occurs because the ExtractedText was not modified (we now
correctly change the source text using replaceText_internal).
This is basically an implementation of the TODO comment next to setSpan in
TextView.
Change-Id: I6575137530e0bb5c9ac7e40cc2bba9c66dc254d21 parent 6db79c3 commit e300be9
File tree
3 files changed
+64
-11
lines changed- core/java/android
- inputmethodservice
- widget
3 files changed
+64
-11
lines changedLines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
| 177 | + | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
182 | 203 | | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
2008 | 2024 | | |
2009 | 2025 | | |
2010 | 2026 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9829 | 9829 | | |
9830 | 9830 | | |
9831 | 9831 | | |
9832 | | - | |
| 9832 | + | |
9833 | 9833 | | |
9834 | 9834 | | |
9835 | 9835 | | |
| |||
9915 | 9915 | | |
9916 | 9916 | | |
9917 | 9917 | | |
9918 | | - | |
| 9918 | + | |
9919 | 9919 | | |
9920 | 9920 | | |
9921 | 9921 | | |
| |||
9982 | 9982 | | |
9983 | 9983 | | |
9984 | 9984 | | |
9985 | | - | |
9986 | | - | |
| 9985 | + | |
9987 | 9986 | | |
9988 | 9987 | | |
9989 | 9988 | | |
9990 | 9989 | | |
9991 | 9990 | | |
9992 | | - | |
| 9991 | + | |
| 9992 | + | |
9993 | 9993 | | |
9994 | 9994 | | |
9995 | 9995 | | |
| |||
11462 | 11462 | | |
11463 | 11463 | | |
11464 | 11464 | | |
| 11465 | + | |
| 11466 | + | |
| 11467 | + | |
| 11468 | + | |
| 11469 | + | |
| 11470 | + | |
| 11471 | + | |
| 11472 | + | |
| 11473 | + | |
| 11474 | + | |
| 11475 | + | |
| 11476 | + | |
| 11477 | + | |
| 11478 | + | |
| 11479 | + | |
| 11480 | + | |
11465 | 11481 | | |
11466 | 11482 | | |
11467 | 11483 | | |
| |||
0 commit comments