android-components / mozilla.components.ui.autocomplete / InlineAutocompleteEditText / onCreateInputConnection


open fun onCreateInputConnection(outAttrs: <ERROR CLASS>): <ERROR CLASS>? (source)

Code to handle deleting autocomplete first when backspacing. If there is no autocomplete text, both removeAutocomplete() and commitAutocomplete() are no-ops and return false. Therefore we can use them here without checking explicitly if we have autocomplete text or not.

Also turns off text prediction for private mode tabs.