Fix an NPE on ICS factory rom.
In ICS factory rom and MR0, there was a bug where calling the constructor for SuggestionSpan that doesn't take a context as an argument would always return in a crash. Don't call it, and pass an explicit context instead. Bug: 13552505 Change-Id: I5c919499b9d086c2cf283795b2af5b91cb425933
This commit is contained in:
parent
7b673c7265
commit
57e29436b1
1 changed files with 4 additions and 2 deletions
|
@ -1649,8 +1649,10 @@ public final class InputLogic {
|
|||
}
|
||||
}
|
||||
// Add the suggestion list to the list of suggestions.
|
||||
textToCommit.setSpan(new SuggestionSpan(inputTransaction.mSettingsValues.mLocale,
|
||||
suggestions.toArray(new String[suggestions.size()]), 0 /* flags */),
|
||||
textToCommit.setSpan(new SuggestionSpan(mLatinIME /* context */,
|
||||
inputTransaction.mSettingsValues.mLocale,
|
||||
suggestions.toArray(new String[suggestions.size()]), 0 /* flags */,
|
||||
null /* notificationTargetClass */),
|
||||
0 /* start */, lastCharIndex /* end */, 0 /* flags */);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue