Skip to content

Instantly share code, notes, and snippets.

@mazzouzi
Created June 1, 2022 09:00
Show Gist options
  • Save mazzouzi/3f950c2e268a0d862124033f14048171 to your computer and use it in GitHub Desktop.
Save mazzouzi/3f950c2e268a0d862124033f14048171 to your computer and use it in GitHub Desktop.
onCleared method to remove the reference to the repository
override fun onCleared() {
repository = null
super.onCleared()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment