splitwise / TokenAutoComplete

Gmail style MultiAutoCompleteTextView for Android
Apache License 2.0
1.3k stars 384 forks source link

onTokenAdded not called with cursoradapter #400

Open slowcar opened 4 years ago

slowcar commented 4 years ago

We use TokenCompleteTextView with a cusoradapter to provide a lookup. When an item from the adapter is selected tokenAdded is not called after we updated from 2.0.8 to 3.0.1 This worked before.

mgod commented 4 years ago

The only thing I can think of that might be different here is that if you are preventing duplicates in the 3.* version, it doesn't call onTokenAdded any more.

slowcar commented 4 years ago

I do that as in the example text by overriding shouldIgnoreToken. onTokenAdded is not fired for the first token though, so there is nothing to duplicate.

mgod commented 4 years ago

I've been able to reproduce this, so hopefully I'll be able to put together a solution soon.