Created
June 26, 2019 08:11
-
-
Save e-lin/fb7de27a33a0e7516b998906b7fb123d to your computer and use it in GitHub Desktop.
Update catfood bowl disposition in Firestore
This file contains hidden or 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
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