-
Notifications
You must be signed in to change notification settings - Fork 38
fix: change sync-init flow to support project auto update on cache download #318
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
Conversation
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.
can we remove the listener from enableUpdateConfigOnNewDatafile?
} | ||
|
||
public void enableUpdateConfigOnNewDatafile(Context context, DatafileConfig datafileConfig, DatafileLoadedListener listener) { | ||
if (listener != null) { |
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.
i don't think the listener should exist here. i think it can be removed. thoughts?
if you are going to store the listener as property, you need to clear it out along with the file observer when stop is called (after line 186). Because, once it is set you don't allow it to be reset. thanks!
…k into jae/init-sync-flow
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