mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 0e66ab74: Merge "Fix ArrayIndexOutOfBoundException"
* commit '0e66ab743358b1ea65d93c640bf167af90b4d481': Fix ArrayIndexOutOfBoundException
This commit is contained in:
commit
c6b7cd3524
@ -208,6 +208,9 @@ final class SuggestionStripLayoutHelper {
|
||||
|
||||
private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords,
|
||||
final int indexInSuggestedWords) {
|
||||
if (indexInSuggestedWords >= suggestedWords.size()) {
|
||||
return null;
|
||||
}
|
||||
final String word = suggestedWords.getWord(indexInSuggestedWords);
|
||||
final boolean isAutoCorrect = indexInSuggestedWords == 1
|
||||
&& suggestedWords.willAutoCorrect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user