0

How to add default tokens to TokenAutoComplete using addObject(obj) method call in Android.

I tried using the addObject method but it behaves very differently a from what I expected, so please, help me to get a solution for this.

I want to add tokens like All, Subordinates in the TokenAutoComplete box before a user can search and add token from the search list

Fábio Santos
  • 199
  • 1
  • 2
  • 16
SumeetP
  • 109
  • 1
  • 2
  • Are we talking about this library? https://github.com/splitwise/TokenAutoComplete What does happen when you use the `addObject()` method? – Axarydax May 13 '15 at 08:34
  • yes I am talking about the same library, and the addObject method is not working as expected. – SumeetP May 13 '15 at 10:14
  • have you tried the overload `addObject(obj,String)`? And since it's open source, you could try to step into the code to see what happens. – Axarydax May 13 '15 at 12:00
  • yes thanks for your comments, I have been trying to dig into the code... – SumeetP May 13 '15 at 13:19

1 Answers1

0

addObject should put the token in the list. When you call addObject what happens? The only thing that's tricky about addObject is that I have to delay actually adding the object until the next UI thread update.

Marshall Weir
  • 463
  • 5
  • 10