Created
January 15, 2019 16:19
-
-
Save manuelernesto/b4c42533803f7e0c59ca6ad0e40ec605 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!!).delete().addOnSuccessListener { | |
"Person was deleted.".toast(this@UpdateFirestoreActivity) | |
finish() | |
}.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