granularity level: instruction
.class final Lcom/google/android/gms/common/api/zaf;
.super Lcom/google/android/gms/common/api/internal/BasePendingResult;
.source "com.google.android.gms:play-services-base@@18.0.1"
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
">",
"Lcom/google/android/gms/common/api/internal/BasePendingResult<",
"TR;>;"
}
.end annotation
.field private final zae:Lcom/google/android/gms/common/api/Result;
.annotation system Ldalvik/annotation/Signature;
value = {
"TR;"
}
.end annotation
.end field
.method public constructor <init>(Lcom/google/android/gms/common/api/Result;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;)V"
}
.end annotation
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-direct {p0, v0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;-><init>(Landroid/os/Looper;)V
iput-object p1, p0, Lcom/google/android/gms/common/api/zaf;->zae:Lcom/google/android/gms/common/api/Result;
return-void
.end method
.method protected final createFailedResult(Lcom/google/android/gms/common/api/Status;)Lcom/google/android/gms/common/api/Result;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/gms/common/api/Status;",
")TR;"
}
.end annotation
invoke-virtual {p1}, Lcom/google/android/gms/common/api/Status;->getStatusCode()I
move-result p1
iget-object v0, p0, Lcom/google/android/gms/common/api/zaf;->zae:Lcom/google/android/gms/common/api/Result;
invoke-interface {v0}, 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;->getStatusCode()I
move-result v0
if-ne p1, v0, :cond_0
iget-object p1, p0, Lcom/google/android/gms/common/api/zaf;->zae:Lcom/google/android/gms/common/api/Result;
return-object p1
:cond_0
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Creating failed results is not supported"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method