Created
August 5, 2019 16:50
-
-
Save ronnieotieno/61dc60cd4750024047b5bce415689260 to your computer and use it in GitHub Desktop.
This file contains 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
private void signIn() { | |
List<AuthUI.IdpConfig> providers = Arrays.asList( | |
new AuthUI.IdpConfig.EmailBuilder().build(), | |
new AuthUI.IdpConfig.GoogleBuilder().build()); | |
startActivityForResult( | |
AuthUI.getInstance() | |
.createSignInIntentBuilder() | |
.setAvailableProviders(providers) | |
.setTheme(R.style.AppTheme | |
.setIsSmartLockEnabled(false) | |
.build(), | |
RC_SIGN_IN); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment