[LeakCanary] GoogleFragment: Set _binding to null onDestroyView

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-09-11 22:15:30 +05:30
parent fe1a8263c1
commit 994a9f160c

View File

@@ -116,6 +116,11 @@ class GoogleFragment : Fragment(R.layout.fragment_google) {
}
}
override fun onDestroyView() {
super.onDestroyView()
_binding = null
}
override fun onStart() {
super.onStart()
EventBus.getDefault().register(this)