mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix an NPE"
This commit is contained in:
commit
a024ac6b20
@ -995,8 +995,6 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||
}
|
||||
}
|
||||
if (!mSettings.getCurrent().isApplicationSpecifiedCompletionsOn()) return;
|
||||
mApplicationSpecifiedCompletions =
|
||||
CompletionInfoUtils.removeNulls(applicationSpecifiedCompletions);
|
||||
if (applicationSpecifiedCompletions == null) {
|
||||
clearSuggestionStrip();
|
||||
if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) {
|
||||
@ -1004,6 +1002,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||
}
|
||||
return;
|
||||
}
|
||||
mApplicationSpecifiedCompletions =
|
||||
CompletionInfoUtils.removeNulls(applicationSpecifiedCompletions);
|
||||
|
||||
final ArrayList<SuggestedWords.SuggestedWordInfo> applicationSuggestedWords =
|
||||
SuggestedWords.getFromApplicationSpecifiedCompletions(
|
||||
|
Loading…
Reference in New Issue
Block a user