36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
|
package com.google.firebase.auth.internal;
|
||
|
|
||
|
import android.text.TextUtils;
|
||
|
import com.google.android.gms.common.internal.Preconditions;
|
||
|
import com.google.android.gms.internal.p002firebaseauthapi.zzaac;
|
||
|
import com.google.firebase.auth.MultiFactorInfo;
|
||
|
import com.google.firebase.auth.PhoneMultiFactorInfo;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzba {
|
||
|
public static MultiFactorInfo zza(zzaac zzaacVar) {
|
||
|
if (zzaacVar == null || TextUtils.isEmpty(zzaacVar.zze())) {
|
||
|
return null;
|
||
|
}
|
||
|
return new PhoneMultiFactorInfo(zzaacVar.zzd(), zzaacVar.zzc(), zzaacVar.zza(), Preconditions.checkNotEmpty(zzaacVar.zze()));
|
||
|
}
|
||
|
|
||
|
public static List zzb(List list) {
|
||
|
if (list == null || list.isEmpty()) {
|
||
|
return new ArrayList();
|
||
|
}
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
Iterator it = list.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
MultiFactorInfo zza = zza((zzaac) it.next());
|
||
|
if (zza != null) {
|
||
|
arrayList.add(zza);
|
||
|
}
|
||
|
}
|
||
|
return arrayList;
|
||
|
}
|
||
|
}
|