[TECHNICAL] Resource leaks in fragment bindings#4814
[TECHNICAL] Resource leaks in fragment bindings#4814corevibe555 wants to merge 2 commits intoowncloud:masterfrom
Conversation
|
@joragua Here is another small PR. Thanks! |
|
Thanks for the contribution @corevibe555! 🙌🏻 I will check this PR as soon as possible and give you any feedback if necessary. Stay tuned! |
joragua
left a comment
There was a problem hiding this comment.
Nice job @corevibe555! 🍻 Some comments about this PR
-
I'd split this into two separate commits: one for the calens entry (
chore: add calens fileorchore: add changelog) and another one for the implementation (keeping the same name) -
Regarding changelog file: missing PR link at the end of the file. In addition, the name of the file must be the PR id (in this case:
4814) -
After rebasing the branch against
master, there are more fragments that need binding cleanup. Also, there is an extra point in this PR:onDestroy()methods that only handle binding cleanup should be replaced withonDestroyView(). There are three fragments currently clearing the binding inonDestroy():TransfersListFragment,SortBottomSheetFragment, andMainFileListFragment
74d589e to
1c5fc77
Compare
|
@joragua I really appreciated by your feedback :)
|
|
@joragua Would you possibly review this PR when you have a chance? |
joragua
left a comment
There was a problem hiding this comment.
Hi @corevibe555! One more comment and it's ready 😄
I'd split this into two separate commits: one for the calens entry (chore: add calens file or chore: add changelog) and another one for the implementation (keeping the same name)
Regarding the comment above, I’d choose only one of the suggestions for the changelog commit, not both:
chore: add calens filechore: add changelog
Choose one of these! Up to you! 🙌🏻
c93bb1e to
ce0c931
Compare
|
That was my bad. |
Related Issues
Fixes #4813
Description
Set
_binding = nullinonDestroyView()for 10 fragments that were missing cleanup, preventing memory leaks when fragment instances outlive their views.Affected fragments:
CreateShortcutDialogFragmentFileDetailsFragmentMainEmptyListFragmentRemoveFilesDialogFragmentSharesFragmentSpacesListFragmentCreateSpaceDialogFragmentAddMemberFragmentSpaceMembersFragmentSetSpaceIconDialogFragmentApp:
ReleaseNotesViewModel.ktcreating a newReleaseNote()with String resources (if required)QA