2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] for https://github.com/mozilla-mobile/fenix/issues/13478, letting go of the fragment resource inside onDestroyView of AddonsManagementFragment to avoid memory leak

This commit is contained in:
sraturi 2020-08-19 14:41:06 -07:00 committed by Emily Kager
parent 244ac47f87
commit f84b53e538

View File

@ -66,6 +66,12 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
}
}
override fun onDestroyView() {
super.onDestroyView()
// letting go of the resources to avoid memory leak.
adapter = null
}
private fun bindRecyclerView(view: View) {
val managementView = AddonsManagementView(
navController = findNavController(),