Skip to content

Instantly share code, notes, and snippets.

@ahinchman1
Created Oct 26, 2022
Embed
What would you like to do?
Nullify view references in Fragment
class SomeFragment : Fragment() {
private var imageView: ImageView? = null
/* removed for brevity */
override fun onDestroyView() {
super.onDestroyView()
imageView = null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment