mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Fixed: Memory leak in KiwixSettingFragment
.
This commit is contained in:
parent
1debc8269c
commit
bd5a9129bf
@ -59,6 +59,7 @@ abstract class CoreSettingsFragment : BaseFragment() {
|
|||||||
requireActivity().supportFragmentManager.beginTransaction().remove(prefsFragment)
|
requireActivity().supportFragmentManager.beginTransaction().remove(prefsFragment)
|
||||||
.commitNowAllowingStateLoss()
|
.commitNowAllowingStateLoss()
|
||||||
super.onDestroyView()
|
super.onDestroyView()
|
||||||
|
settingsBinding?.root?.removeAllViews()
|
||||||
settingsBinding = null
|
settingsBinding = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user