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

Revised Issue #15 NoConnection Interface and Callback to Fragments + General SnackBar Utility #35

Closed
wants to merge 4 commits into from

Conversation

laavanyebahl
Copy link
Contributor

Issue no #15 Revised

  • API exception checked while syncing
  • Exception type is checked
  • Interface for NetworkCallBack
  • Callback implemented in Fragment View Pager
  • General Reusable SnackBar Utility

ff

Signed-off-by: Laavanye Bahl <laavanye.bahl@gmail.com>
Signed-off-by: Laavanye Bahl <laavanye.bahl@gmail.com>
Signed-off-by: Laavanye Bahl <laavanye.bahl@gmail.com>
Signed-off-by: Laavanye Bahl <laavanye.bahl@gmail.com>
public interface NetworkCallBack {
void networkCallback();
}
static NetworkCallBack networkCallBack;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping static reference to callback can cause a memory leak.

@arazabishov
Copy link
Contributor

@laa-1-yay Thanks for making effort to improve previous pull-request, but there are still some problems in your code. Please, see comments attached to pull-request.

@laavanyebahl
Copy link
Contributor Author

@arazabishov Thanks for reviewing the code. I'll make changes again as per the suggestions and submit a pr again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants