Created
October 20, 2020 21:53
-
-
Save TorkelV/7db486c35d3cf5cdb5740d65662377be 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
fun addPhrase(phrase: String, translation: String, groupId: String){ | |
if(phrase.isNotEmpty() && translation.isNotEmpty()){ | |
viewmodelScope.launch(Dispatchers.IO){ | |
db.addAll(Phrase(newPhrase, newTranslation)) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment