fix : leaks at Media Detail Fragment #6705
fix : leaks at Media Detail Fragment #6705rovertrack wants to merge 2 commits intocommons-app:mainfrom
Conversation
3c46c15 to
cdf1b11
Compare
|
@neeldoshii i have fixed leaks around Media Detail Fragment & Contribution Fragment |
neeldoshii
left a comment
There was a problem hiding this comment.
Hi @rovertrack, thanks for working on the memory leaks! Would it be possible to keep each PR focused on a specific leak or file? It’s a bit hard to review when it mentions “many more which I encountered.”
Instead, could you provide specific details about each leak you're solving? That would make it much easier to review and understand the RCA. Also, it would help if each PR focuses on solving one issue at a time.
Feel free to split them into multiple PRs (one per memory leak) if that works better. It will make them easier to review and maintain. :-)
|
@neeldoshii i have separated the PRs for separate leaks as follow up for this PR |
| position | ||
| } else { | ||
| binding!!.mediaDetailsPager.currentItem | ||
| pager.currentItem |
There was a problem hiding this comment.
Sorry, I haven't read the entire code, but just to confirm once, this line addresses the issue I mentioned in this PR: #6624, is it? 🙂
We'll test it a bit intensively as we've seen regressions in at least two PRs. Thanks for your patience.
There was a problem hiding this comment.
mostly yes , because many cases it tries to access that pager after destroyed which results in ANR ,null pointer
sure , anything as long as it solves the issue )
|
@RitikaPahwa4444 is this pr good ? As far as I have tested it solved the leaks ! |
|
✅ Generated APK variants! |
Fixes #6692
What changes did you make and why?
MediaDetailAdapter.kt
MediaDetailFragment.kt
MediaDetailPagerFragment.kt
MediaDetailFragmentUnitTests.kt
Screenshots (for UI changes only)
VID_20260305004734.mp4