Skip to content

Instantly share code, notes, and snippets.

@e-lin
Created June 26, 2019 08:11
Show Gist options
  • Save e-lin/fb7de27a33a0e7516b998906b7fb123d to your computer and use it in GitHub Desktop.
Save e-lin/fb7de27a33a0e7516b998906b7fb123d to your computer and use it in GitHub Desktop.
Update catfood bowl disposition in Firestore
val disposition = button_click_true_or_false
picReference.update(
"answer.uid", uid,
"answer.disposition", disposition)
.addOnCompleteListener(this) {
Log.d(TAG, "Answer written to database")
finish()
}
.addOnFailureListener(this, {e ->
Log.d(TAG, "Answer not written to database", e)
finish()
})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment