Created
August 4, 2018 22:11
-
-
Save paulocns/7839c84a0cb8ed8a8d4dbc8bbb9e8473 to your computer and use it in GitHub Desktop.
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 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