granularity level: instruction
.class public abstract Lcom/google/android/gms/common/api/ResultCallbacks;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"
.implements Lcom/google/android/gms/common/api/ResultCallback;
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
">",
"Ljava/lang/Object;",
"Lcom/google/android/gms/common/api/ResultCallback<",
"TR;>;"
}
.end annotation
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public abstract onFailure(Lcom/google/android/gms/common/api/Status;)V
.end method
.method public final onResult(Lcom/google/android/gms/common/api/Result;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;)V"
}
.end annotation
invoke-interface {p1}, Lcom/google/android/gms/common/api/Result;->getStatus()Lcom/google/android/gms/common/api/Status;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/gms/common/api/Status;->isSuccess()Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/ResultCallbacks;->onSuccess(Lcom/google/android/gms/common/api/Result;)V
return-void
:cond_0
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/api/ResultCallbacks;->onFailure(Lcom/google/android/gms/common/api/Status;)V
instance-of v0, p1, Lcom/google/android/gms/common/api/Releasable;
if-eqz v0, :cond_1
:try_start_0
move-object v0, p1
check-cast v0, Lcom/google/android/gms/common/api/Releasable;
invoke-interface {v0}, Lcom/google/android/gms/common/api/Releasable;->release()V
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v1, "Unable to release "
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v1, "ResultCallbacks"
invoke-static {v1, p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_1
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