Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firebase.getReference("types/$groupId").orderByChild("name").once().subscribeBy(
- onNext = {
- groups.value = it.children?.distinct() ?: emptyList()
- loadFinished()
- },
- onError = {
- groups.value = emptyList()
- loadFinished()
- }
- )
Add Comment
Please, Sign In to add comment