I'm trying to programmatically disable suggestions with setInputType()
using InputType TYPE_TEXT_FLAG_NO_SUGGESTIONS
.
While this works for most keyboards, this doesn't work when using the "Gboard" keyboard; even with this input type, suggestions always appear. The problem is that the user can choose if he wants to have suggestions on input fields, regardless of the input type specified by the EditText.
How can the suggestions be suppressed for all keyboards, including Gboard?