Skip to content

Instantly share code, notes, and snippets.

@paulocns
Created August 4, 2018 22:11
Show Gist options
  • Save paulocns/7839c84a0cb8ed8a8d4dbc8bbb9e8473 to your computer and use it in GitHub Desktop.
Save paulocns/7839c84a0cb8ed8a8d4dbc8bbb9e8473 to your computer and use it in GitHub Desktop.
class QueryViewModelArc @Inject
constructor(private val mSearchShows: SearchShows?) : ViewModel() {
val query = MutableLiveData<String>()
val searchEnabled = MutableLiveData<Boolean>()
init {
searchEnabled.value = false
query.value = ""
}
//your viewmodel stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment