Fix LoadingFragment memory leak
Fix an issue where a memory leak would occur in LoadingFragment if it exited before it was visible to the user.
This commit is contained in:
parent
1e102e9d5d
commit
2889e6fdfd
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@ class LoadingFragment : Fragment(R.layout.fragment_loading) {
|
||||||
return binding.root
|
return binding.root
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onStart() {
|
||||||
|
super.onStart()
|
||||||
|
|
||||||
// If the music was already loaded, then don't do it again.
|
// If the music was already loaded, then don't do it again.
|
||||||
if (MusicStore.getInstance().loaded) {
|
if (MusicStore.getInstance().loaded) {
|
||||||
findNavController().navigate(
|
findNavController().navigate(
|
||||||
|
|
Loading…
Reference in a new issue