Closed dragossusi closed 5 years ago
You should return null
from defaultObject
and leave performBestGuess
to its default value of true
.
Actually i want to disable bestquess too. I found a workaround overriding performCompletion
override fun performCompletion() {
if ((getAdapter() == null || getListSelection() == ListView.INVALID_POSITION) && enoughToFilter()) {
//avoid adding
} else super.performCompletion()
}
I am populating the adapter using retrofit with observables. I want to prevent adding tokens that are not in the adapter's list. Is it possible?