I am trying to programmatically disable sentences using setInputType() using InputType TYPE_TEXT_FLAG_NO_SUGGESTIONS .
While this works for most keyboards, it does not work when using the "Gboard" keyboard; even with this type of input, suggestions always appear. The problem is that the user can choose whether he wants to have suggestions for the input fields, regardless of the type of input specified in EditText.
How can I suppress sentences for all keyboards, including Gboard?
source share