Skip to content

Instantly share code, notes, and snippets.

@manuelernesto
Created January 15, 2019 16:27
Show Gist options
  • Save manuelernesto/160f31def8c35c148602c09ef04989d4 to your computer and use it in GitHub Desktop.
Save manuelernesto/160f31def8c35c148602c09ef04989d4 to your computer and use it in GitHub Desktop.
db.collection("Person").document(personExtra.id!!)
.update("name",etName_firestore_update.text)
.addOnSuccessListener {
"Updated Successful.".toast(this@UpdateFirestoreActivity)
finish()
startActivity(Intent(this, FirestoreListActivity::class.java))
progressBarStyle.visibility = ProgressBar.INVISIBLE
}.addOnFailureListener { exception ->
"Error: ${exception.message}".toast(this@UpdateFirestoreActivity)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment