Created
January 30, 2019 23:18
-
-
Save idish/f46a8327da7f293f943a5bda31078c95 to your computer and use it in GitHub Desktop.
SharedPreferenceLiveData should extends MutableLiveData?, or am i wrong?
You don not need extend MutableLiveData. setValue and postValue are protected, so you can use them as long as you extend LiveData.
How do you use this with Transformation switchmap? I would like to use it with my ViewModel and the ViewModel needs to be aware of changes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SharedPreferenceLiveData should extends MutableLiveData?, or am i wrong?