-
-
Save ahinchman1/d8822dbca065e2d0b3bc57e5ec381b93 to your computer and use it in GitHub Desktop.
Nullify view references in Fragment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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