Commit 08bab56
committed
fix wrong substring
The tokenOffsets is the offset from trimed contentLine.
But it is used in substring as the offset from un-trimed contentLine.
How to reproduce bug (ICS and before):
1. Add a contact record with name and a phone number (ex. 090-1111-2222)
2. Search by "0" in Contacts app
3. Contacts shows a wrong number something like "0900111102222"
Change-Id: I1e1cb2f3bd135d98e1573a50aa6ddc021af35b9f1 parent 9f7fa4c commit 08bab56
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8362 | 8362 | | |
8363 | 8363 | | |
8364 | 8364 | | |
8365 | | - | |
| 8365 | + | |
8366 | 8366 | | |
8367 | 8367 | | |
8368 | 8368 | | |
| |||
0 commit comments