what-the-bank/sources/com/google/firebase/auth/internal/zzba.java

36 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}