-
Notifications
You must be signed in to change notification settings - Fork 130
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
Removes the callback from the handler when the activity is destroyed #361
base: bug-fixes
Are you sure you want to change the base?
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.
Thanks @saketkumar95
@saketkumar95 It looks that you have created the PR targeted to master branch. Can you please redirect to bug-fixes branch. |
@Override | ||
protected void onDestroy() { | ||
super.onDestroy(); | ||
if (handler != 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.
Also reformat your new changes.
@opticod Done. :) |
@saketkumar95 , looks like you haven't reformatted your code.
formatting.Please reformat it. You can automatically do it in Android studio. |
@opticod I have reformatted the code. And i saw some more which are not formatted so i thought to reformat the whole project. What do you think about this? |
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.
Lets reformat the code before merging bug-fixes to master, but not now.
Your travis is failing. Please fix that. Check log at https://travis-ci.org/BuildmLearn/BuildmLearn-Toolkit-Android/builds/193503560
a3993ce
to
6eea6bd
Compare
@saketkumar95 , Are you on this #353 |
I just missed this. Will update the branch tonight. :) |
Are you still on this ? Will soon start reviewing and merging the PRs. Thanks. |
Now it wouldn't cause a leak when we don't need the handler anymore.
@opticod Review and tell me if you need any changes. :)