Created
August 5, 2019 16:49
-
-
Save ronnieotieno/4700d68971344c74cc27586998c87882 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