Skip to content

Instantly share code, notes, and snippets.

@vprabhu
Created August 17, 2018 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vprabhu/b42cfb3992bf5710036f98045aa72b00 to your computer and use it in GitHub Desktop.
Save vprabhu/b42cfb3992bf5710036f98045aa72b00 to your computer and use it in GitHub Desktop.
public override fun onStart() {
super.onStart()
// Check if user is signed in (non-null) and update UI accordingly.
val currentUser = mAuth.currentUser
val userName = currentUser?.displayName
textView_username.text = userName
if(!userName.isNullOrEmpty()){
setLoginUIVisible(currentUser?.photoUrl)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment