This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use HomeFragment's viewLifecycleOwner as the lifecycle for accountMan…
…ager observer registry If we just use the HomeFragment itself, we end up with a memory leak since the lifecycle events that would clean up the registry (e.g. destroy) won't run (if the fragment is retained in the backstack, for example).
- Loading branch information
Grisha Kruglov
committed
Apr 17, 2020
1 parent
2056b6f
commit fd9bcbf
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters