granularity level: instruction
.class public final synthetic Lcom/google/android/gms/tasks/zzx;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-tasks@@18.0.1"
.implements Lcom/google/android/gms/tasks/OnCompleteListener;
.field public final synthetic zza:Lcom/google/android/gms/internal/tasks/zza;
.field public final synthetic zzb:Lcom/google/android/gms/tasks/TaskCompletionSource;
.field public final synthetic zzc:Lcom/google/android/gms/tasks/zzb;
.method public synthetic constructor <init>(Lcom/google/android/gms/internal/tasks/zza;Lcom/google/android/gms/tasks/TaskCompletionSource;Lcom/google/android/gms/tasks/zzb;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/tasks/zzx;->zza:Lcom/google/android/gms/internal/tasks/zza;
iput-object p2, p0, Lcom/google/android/gms/tasks/zzx;->zzb:Lcom/google/android/gms/tasks/TaskCompletionSource;
iput-object p3, p0, Lcom/google/android/gms/tasks/zzx;->zzc:Lcom/google/android/gms/tasks/zzb;
return-void
.end method
.method public final onComplete(Lcom/google/android/gms/tasks/Task;)V
.locals 4
iget-object v0, p0, Lcom/google/android/gms/tasks/zzx;->zza:Lcom/google/android/gms/internal/tasks/zza;
iget-object v1, p0, Lcom/google/android/gms/tasks/zzx;->zzb:Lcom/google/android/gms/tasks/TaskCompletionSource;
iget-object v2, p0, Lcom/google/android/gms/tasks/zzx;->zzc:Lcom/google/android/gms/tasks/zzb;
const/4 v3, 0x0
invoke-virtual {v0, v3}, Lcom/google/android/gms/internal/tasks/zza;->removeCallbacksAndMessages(Ljava/lang/Object;)V
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->isSuccessful()Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object p1
invoke-virtual {v1, p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->trySetResult(Ljava/lang/Object;)Z
return-void
:cond_0
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->isCanceled()Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {v2}, Lcom/google/android/gms/tasks/zzb;->zza()V
return-void
:cond_1
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getException()Ljava/lang/Exception;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
invoke-virtual {v1, p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->trySetException(Ljava/lang/Exception;)Z
return-void
.end method