Last active
October 20, 2020 22:10
-
-
Save TorkelV/fb581317ec3cb4e678df114880ca7707 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 canAddNewPhrase: LiveData<Boolean> = Lives.combineLatest(phrase, translation){ | |
phrase, translation -> phrase.isNotEmpty() && translation.isNotEmpty() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment