Skip to content

Removes the callback from the handler when the activity is destroyed#361

Open
saketkumar wants to merge 3 commits into
BuildmLearn:bug-fixesfrom
saketkumar:leak
Open

Removes the callback from the handler when the activity is destroyed#361
saketkumar wants to merge 3 commits into
BuildmLearn:bug-fixesfrom
saketkumar:leak

Conversation

@saketkumar

Copy link
Copy Markdown

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. :)

opticod
opticod previously approved these changes Jan 17, 2017

@opticod opticod left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @saketkumar95

@opticod

opticod commented Jan 17, 2017

Copy link
Copy Markdown
Collaborator

@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)

Copy link
Copy Markdown
Collaborator

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 opticod dismissed their stale review January 17, 2017 17:17

need to change target branch

@saketkumar saketkumar changed the base branch from master to bug-fixes January 17, 2017 21:36
@saketkumar

Copy link
Copy Markdown
Author

@opticod Done. :)

@opticod

opticod commented Jan 19, 2017

Copy link
Copy Markdown
Collaborator

@saketkumar95 , looks like you haven't reformatted your code.
We follow

 if () {

}

formatting.Please reformat it. You can automatically do it in Android studio.

@saketkumar

Copy link
Copy Markdown
Author

@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?

opticod
opticod previously approved these changes Jan 19, 2017

@opticod opticod left a comment

Copy link
Copy Markdown
Collaborator

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.

@saketkumar saketkumar mentioned this pull request Jan 21, 2017
@opticod opticod force-pushed the bug-fixes branch 3 times, most recently from a3993ce to 6eea6bd Compare January 29, 2017 14:13
@opticod

opticod commented Feb 7, 2017

Copy link
Copy Markdown
Collaborator

@saketkumar95 , Are you on this #353

@saketkumar

Copy link
Copy Markdown
Author

I just missed this. Will update the branch tonight. :)

@opticod

opticod commented Sep 1, 2017

Copy link
Copy Markdown
Collaborator

Are you still on this ? Will soon start reviewing and merging the PRs. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants