We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems when passing context to ConvenienceBuilder.createAppTitleItem() the activity instance is leaked.
@NonNull @Override protected MaterialAboutList getMaterialAboutList(@NonNull Context context) { MaterialAboutCard card = new MaterialAboutCard.Builder() .addItem(ConvenienceBuilder.createAppTitleItem(context)) // This leaks the activity .build(); return new MaterialAboutList.Builder() .addCard(card) .build(); }
Now, from what I understand about it is this a known leak and affects JELLY_BEANup to MARSHMALLOW.
JELLY_BEAN
MARSHMALLOW
The way to easily avoid it in ConvenienceBuilder would be to pass the application context and not the activity directly.
The text was updated successfully, but these errors were encountered:
Merged! Thank you.
Sorry, something went wrong.
You are very welcome 😀
No branches or pull requests
It seems when passing context to ConvenienceBuilder.createAppTitleItem() the activity instance is leaked.
Code to reproduce
Leakcanary says
Now, from what I understand about it is this a known leak and affects
JELLY_BEAN
up toMARSHMALLOW
.The way to easily avoid it in ConvenienceBuilder would be to pass the application context and not the activity directly.
The text was updated successfully, but these errors were encountered: