Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getObjects() sometimes returns 0 #172

Closed
dkadrikj opened this issue Oct 7, 2015 · 2 comments
Closed

getObjects() sometimes returns 0 #172

dkadrikj opened this issue Oct 7, 2015 · 2 comments
Labels

Comments

@dkadrikj
Copy link

dkadrikj commented Oct 7, 2015

The getObjects() method sometimes returns 0 elements (empty list). I do not have all the details since, the code is production, and we can not replicate. But, it surely exists since a more users had complained about it.

Library version: 2.0.2

@mgod
Copy link
Contributor

mgod commented Oct 7, 2015

I should probably make a note of this somewhere in the docs as this is a known flaw in the design. The getObjects() call will be empty if you call it before the UI has had some cycles to update. getObjects() returns all objects that have tokens currently visible, so if the token field text has not had a chance to redraw with new tokens, they will not be returned.

I would actually guess (as you can't replicate) that the field is not able to restore the tokens during configuration changes in your app. Try rotating the screen with tokens entered and see if that causes the problem.

@mgod mgod added the bug label Feb 17, 2016
@mgod
Copy link
Contributor

mgod commented Mar 9, 2019

Version 3.0.0 adds an addObjectSync method that should make sure the getObjects call is more accurate.

@mgod mgod closed this as completed Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants