Created
January 15, 2019 16:27
-
-
Save manuelernesto/160f31def8c35c148602c09ef04989d4 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
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