-
Notifications
You must be signed in to change notification settings - Fork 39
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
(fix): Listener on task #321
Conversation
…postExecute since file io can take some time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fix for async init thread changes datafile loading for sync init.
// if (isDatafileCached(context)) { | ||
// String datafile = datafileHandler.loadSavedDatafile(context, datafileConfig); | ||
// if (datafile != null) { | ||
// return datafile; | ||
// } | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this function is shared for sync and async init. I see you move this to async download thread. It looks great.
This will change sync init behavior (it'll skip cache load) if we remove it. We probably need a separate path for sync and async for getDatafile().
…source on main thread if all else fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Issues