Skip to content

Instantly share code, notes, and snippets.

@kirich1409
Last active May 3, 2020 11:16
Show Gist options
  • Save kirich1409/d674b3a830fe93c56f687bc3a7a3b7d5 to your computer and use it in GitHub Desktop.
Save kirich1409/d674b3a830fe93c56f687bc3a7a3b7d5 to your computer and use it in GitHub Desktop.
class ProfileFragment() : Fragment(R.layout.profile) {
private val viewBinding: ProfileBinding by viewBinding()
override fun onDestroyView() {
super.onDestroyView()
// Clear data in views from viewBinding
// ViewBinding inside viewBinding is null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment