File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/src/main/java/com/firebase/uidemo/auth
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,7 @@ public void signIn(View view) {
172
172
@ OnClick (R .id .sign_in_silent )
173
173
public void silentSignIn (View view ) {
174
174
List <IdpConfig > providers = new ArrayList <>();
175
- List <IdpConfig > selected = getSelectedProviders ();
176
- for (IdpConfig config : selected ) {
175
+ for (IdpConfig config : getSelectedProviders ()) {
177
176
String provider = config .getProviderId ();
178
177
if (provider .equals (EmailAuthProvider .PROVIDER_ID )
179
178
|| provider .equals (GoogleAuthProvider .PROVIDER_ID )) {
Original file line number Diff line number Diff line change @@ -271,14 +271,15 @@ public static int getDefaultTheme() {
271
271
* Signs the user in without any UI if possible. If this operation fails, you can safely start a
272
272
* UI-based sign-in flow knowing it is required.
273
273
*
274
- * @param context the context requesting the user be signed in
274
+ * @param context requesting the user be signed in
275
+ * @param configs to use for silent sign in
275
276
* @return a task which indicates whether or not the user was successfully signed in.
276
277
*/
277
278
@ NonNull
278
279
public Task <AuthResult > silentSignIn (@ NonNull final Context context ,
279
280
@ NonNull List <IdpConfig > configs ) {
280
281
if (configs .isEmpty ()) {
281
- throw new IllegalArgumentException ("Configs must not be empty ." );
282
+ throw new IllegalArgumentException ("At least one provider must be specified ." );
282
283
}
283
284
for (IdpConfig config : configs ) {
284
285
String provider = config .getProviderId ();
You can’t perform that action at this time.
0 commit comments