Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.63 KB | None | 0 0
  1. db.collection("users")
  2.                         .document(currentUser?.uid.toString())
  3.                         .get().addOnSuccessListener {
  4.                             val user = User(it)
  5.                             user.locations.add(coordinates!!)
  6.  
  7.                             db.collection("users")
  8.                                 .document(currentUser?.uid.toString())
  9.                                 .set(user)
  10.                                 .addOnCompleteListener()
  11.                                 {
  12.                                     jobFinished(params, false)
  13.                                 }
  14.  
  15.                         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement