[LeakCanary] AccentFragment: Set binding to null onDestroyView

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-09-22 23:44:54 +05:30
parent 078b0892fe
commit 9bf4c3c53b

View File

@@ -81,6 +81,11 @@ class AccentFragment : BaseFragment(R.layout.fragment_onboarding_accent) {
}
}
override fun onDestroyView() {
super.onDestroyView()
_binding = null
}
private fun updateAccent(accentId: Int) {
requireActivity().recreate()
save(PREFERENCE_THEME_ACCENT, accentId)