mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 15:15:21 +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)
|
||||
public boolean onInlineSuggestionsResponse(InlineSuggestionsResponse response) {
|
||||
Log.d(TAG,"onInlineSuggestionsResponse called");
|
||||
if (Settings.getValues().mSuggestionStripHiddenPerUserSettings) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final List<InlineSuggestion> inlineSuggestions = response.getInlineSuggestions();
|
||||
if (inlineSuggestions.isEmpty()) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue