Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.collection("users")
- .document(currentUser?.uid.toString())
- .get().addOnSuccessListener {
- val user = User(it)
- user.locations.add(coordinates!!)
- db.collection("users")
- .document(currentUser?.uid.toString())
- .set(user)
- .addOnCompleteListener()
- {
- jobFinished(params, false)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement