Last active
October 20, 2020 22:07
-
-
Save TorkelV/edb4338e2d2f0343aebd328e1d402f35 to your computer and use it in GitHub Desktop.
This file contains 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
val activeGroup = prefs.activeGroup.asLiveData(viewModelScope.coroutineContext) | |
val phrases: LiveData<List<Phrase>> = activeGroup.switchMap { group -> | |
db.getAll(group) | |
.asLiveData(viewModelScope.coroutineContext) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment