Skip to content

Instantly share code, notes, and snippets.

@sys1yagi
Created December 13, 2017 02:30
Show Gist options
  • Save sys1yagi/5506dba4ee5403950215b9a1bbe1543b to your computer and use it in GitHub Desktop.
Save sys1yagi/5506dba4ee5403950215b9a1bbe1543b to your computer and use it in GitHub Desktop.
class StateLiveData<T> : MutableLiveData<T>() {
override fun onInactive() {
super.onInactive()
value = null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment