Skip to content

Instantly share code, notes, and snippets.

Created Oct 26, 2022
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() {
imageView = null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment