[LeakCanary] AccentFragment: Set binding to null onDestroyView
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user