alexandroid/decompiled/jadx/sources/com/google/android/gms/auth/UserRecoverableAuthException.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

62 lines
2.1 KiB
Java

package com.google.android.gms.auth;
import android.app.PendingIntent;
import android.content.Intent;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepName;
import com.google.android.gms.common.internal.Preconditions;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@KeepName
/* loaded from: classes7.dex */
public class UserRecoverableAuthException extends GoogleAuthException {
@Nullable
private final Intent zza;
@Nullable
private final PendingIntent zzb;
private final zzn zzc;
private UserRecoverableAuthException(@Nullable String str, @Nullable Intent intent, @Nullable PendingIntent pendingIntent, zzn zznVar) {
super(str);
this.zzb = pendingIntent;
this.zza = intent;
this.zzc = (zzn) Preconditions.checkNotNull(zznVar);
}
@NonNull
public static UserRecoverableAuthException zza(@Nullable String str, @NonNull Intent intent, @NonNull PendingIntent pendingIntent) {
Preconditions.checkNotNull(intent);
Preconditions.checkNotNull(pendingIntent);
return new UserRecoverableAuthException(str, intent, pendingIntent, zzn.AUTH_INSTANTIATION);
}
@Nullable
public Intent getIntent() {
Intent intent = this.zza;
if (intent != null) {
return new Intent(intent);
}
int ordinal = this.zzc.ordinal();
if (ordinal == 0) {
Log.w("Auth", "Make sure that an intent was provided to class instantiation.");
return null;
}
if (ordinal == 1) {
Log.e("Auth", "This shouldn't happen. Gms API throwing this exception should support the recovery Intent.");
return null;
}
if (ordinal != 2) {
return null;
}
Log.e("Auth", "this instantiation of UserRecoverableAuthException doesn't support an Intent.");
return null;
}
public UserRecoverableAuthException(@Nullable String str, @Nullable Intent intent) {
this(str, intent, null, zzn.LEGACY);
}
}