Skip to content

Commit ff2814d

Browse files
committed
Cleanup
Signed-off-by: Alex Saveau <[email protected]>
1 parent a3fbdd8 commit ff2814d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/java/com/firebase/uidemo/auth/AuthUiActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ public void signIn(View view) {
172172
@OnClick(R.id.sign_in_silent)
173173
public void silentSignIn(View view) {
174174
List<IdpConfig> providers = new ArrayList<>();
175-
List<IdpConfig> selected = getSelectedProviders();
176-
for (IdpConfig config : selected) {
175+
for (IdpConfig config : getSelectedProviders()) {
177176
String provider = config.getProviderId();
178177
if (provider.equals(EmailAuthProvider.PROVIDER_ID)
179178
|| provider.equals(GoogleAuthProvider.PROVIDER_ID)) {

auth/src/main/java/com/firebase/ui/auth/AuthUI.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,15 @@ public static int getDefaultTheme() {
271271
* Signs the user in without any UI if possible. If this operation fails, you can safely start a
272272
* UI-based sign-in flow knowing it is required.
273273
*
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
275276
* @return a task which indicates whether or not the user was successfully signed in.
276277
*/
277278
@NonNull
278279
public Task<AuthResult> silentSignIn(@NonNull final Context context,
279280
@NonNull List<IdpConfig> configs) {
280281
if (configs.isEmpty()) {
281-
throw new IllegalArgumentException("Configs must not be empty.");
282+
throw new IllegalArgumentException("At least one provider must be specified.");
282283
}
283284
for (IdpConfig config : configs) {
284285
String provider = config.getProviderId();

0 commit comments

Comments
 (0)