mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 23:20:54 +00:00
Fix onInlineSuggestionsResponse
crash (#1700)
This commit is contained in:
parent
f2ec441f45
commit
79726f1a9d
1 changed files with 4 additions and 0 deletions
|
@ -1386,6 +1386,10 @@ public class LatinIME extends InputMethodService implements
|
||||||
@RequiresApi(api = Build.VERSION_CODES.R)
|
@RequiresApi(api = Build.VERSION_CODES.R)
|
||||||
public boolean onInlineSuggestionsResponse(InlineSuggestionsResponse response) {
|
public boolean onInlineSuggestionsResponse(InlineSuggestionsResponse response) {
|
||||||
Log.d(TAG,"onInlineSuggestionsResponse called");
|
Log.d(TAG,"onInlineSuggestionsResponse called");
|
||||||
|
if (Settings.getValues().mSuggestionStripHiddenPerUserSettings) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
final List<InlineSuggestion> inlineSuggestions = response.getInlineSuggestions();
|
final List<InlineSuggestion> inlineSuggestions = response.getInlineSuggestions();
|
||||||
if (inlineSuggestions.isEmpty()) {
|
if (inlineSuggestions.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue