Skip to content

Instantly share code, notes, and snippets.

@ziginsider
Last active November 29, 2017 14:46
Show Gist options
  • Select an option

  • Save ziginsider/f540b589b47b59a843584216bdbfc751 to your computer and use it in GitHub Desktop.

Select an option

Save ziginsider/f540b589b47b59a843584216bdbfc751 to your computer and use it in GitHub Desktop.
private void updateUser(User user) {
//по полученному начению UUID меняем имя
mDatabaseReference.child("users")
.child(user.getUid())
.child("name")
.setValue(user.getName());
//меняем email
mDatabaseReference.child("users")
.child(user.getUid())
.child("email")
.setValue(user.getEmail());
clearEditText();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment