granularity level: instruction
.class public abstract Lcom/google/android/gms/common/api/ResolvingResultCallbacks;
.super Lcom/google/android/gms/common/api/ResultCallbacks;
.source "com.google.android.gms:play-services-basement@@18.1.0"
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
">",
"Lcom/google/android/gms/common/api/ResultCallbacks<",
"TR;>;"
}
.end annotation
.field private final zza:Landroid/app/Activity;
.field private final zzb:I
.method protected constructor <init>(Landroid/app/Activity;I)V
.locals 1
invoke-direct {p0}, Lcom/google/android/gms/common/api/ResultCallbacks;-><init>()V
const-string v0, "Activity must not be null"
invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iput-object p1, p0, Lcom/google/android/gms/common/api/ResolvingResultCallbacks;->zza:Landroid/app/Activity;
iput p2, p0, Lcom/google/android/gms/common/api/ResolvingResultCallbacks;->zzb:I
return-void
.end method
.method public final onFailure(Lcom/google/android/gms/common/api/Status;)V
.locals 2
invoke-virtual {p1}, Lcom/google/android/gms/common/api/Status;->hasResolution()Z
move-result v0
if-eqz v0, :cond_0
:try_start_0
iget-object v0, p0, Lcom/google/android/gms/common/api/ResolvingResultCallbacks;->zza:Landroid/app/Activity;
iget v1, p0, Lcom/google/android/gms/common/api/ResolvingResultCallbacks;->zzb:I
invoke-virtual {p1, v0, v1}, Lcom/google/android/gms/common/api/Status;->startResolutionForResult(Landroid/app/Activity;I)V
:try_end_0
.catch Landroid/content/IntentSender$SendIntentException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
const-string v0, "ResolvingResultCallback"
const-string v1, "Failed to start resolution"
invoke-static {v0, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
new-instance p1, Lcom/google/android/gms/common/api/Status;
const/16 v0, 0x8
invoke-direct {p1, v0}, Lcom/google/android/gms/common/api/Status;-><init>(I)V
invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/ResolvingResultCallbacks;->onUnresolvableFailure(Lcom/google/android/gms/common/api/Status;)V
return-void
:cond_0
invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/ResolvingResultCallbacks;->onUnresolvableFailure(Lcom/google/android/gms/common/api/Status;)V
return-void
.end method
.method public abstract onSuccess(Lcom/google/android/gms/common/api/Result;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;)V"
}
.end annotation
.end method
.method public abstract onUnresolvableFailure(Lcom/google/android/gms/common/api/Status;)V
.end method