alexandroid/decompiled/jadx/sources/com/google/android/gms/tasks/zzo.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

46 lines
1.6 KiB
Java

package com.google.android.gms.tasks;
import java.util.concurrent.CancellationException;
import java.util.concurrent.Executor;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes7.dex */
final class zzo implements Runnable {
final /* synthetic */ Task zza;
final /* synthetic */ zzp zzb;
public zzo(zzp zzpVar, Task task) {
this.zzb = zzpVar;
this.zza = task;
}
@Override // java.lang.Runnable
public final void run() {
SuccessContinuation successContinuation;
try {
successContinuation = this.zzb.zzb;
Task then = successContinuation.then(this.zza.getResult());
zzp zzpVar = this.zzb;
if (then == null) {
zzpVar.onFailure(new NullPointerException("Continuation returned null"));
return;
}
Executor executor = TaskExecutors.zza;
then.addOnSuccessListener(executor, zzpVar);
then.addOnFailureListener(executor, this.zzb);
then.addOnCanceledListener(executor, this.zzb);
} catch (RuntimeExecutionException e) {
boolean z = e.getCause() instanceof Exception;
zzp zzpVar2 = this.zzb;
if (z) {
zzpVar2.onFailure((Exception) e.getCause());
} else {
zzpVar2.onFailure(e);
}
} catch (CancellationException unused) {
this.zzb.onCanceled();
} catch (Exception e2) {
this.zzb.onFailure(e2);
}
}
}