66 lines
1.7 KiB
Smali
66 lines
1.7 KiB
Smali
.class public Lcom/google/firebase/FirebaseExceptionMapper;
|
|
.super Ljava/lang/Object;
|
|
.source "com.google.android.gms:play-services-basement@@18.0.0"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/common/api/internal/StatusExceptionMapper;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getException(Lcom/google/android/gms/common/api/Status;)Ljava/lang/Exception;
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/gms/common/api/Status;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lcom/google/android/gms/common/api/Status;->getStatusCode()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x8
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
new-instance v0, Lcom/google/firebase/FirebaseException;
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Lcom/google/android/gms/common/api/Status;->zza()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/firebase/FirebaseException;-><init>(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/google/firebase/FirebaseApiNotAvailableException;
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lcom/google/android/gms/common/api/Status;->zza()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/firebase/FirebaseApiNotAvailableException;-><init>(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|