Skip to content

Instantly share code, notes, and snippets.

@pavan5208
Last active July 18, 2021 16:42
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 pavan5208/dfde3570d3cffa27ab0b683bd25a7cb6 to your computer and use it in GitHub Desktop.
Save pavan5208/dfde3570d3cffa27ab0b683bd25a7cb6 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 = auth.currentUser
if (currentUser != null) {
Toast.makeText(
baseContext, "Already Logged In.",
Toast.LENGTH_SHORT
).show()
startHomeActivity()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment