Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
42
apk_decompiled/sources/com/google/android/gms/tasks/zzo.java
Normal file
42
apk_decompiled/sources/com/google/android/gms/tasks/zzo.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.google.android.gms.tasks;
|
||||
|
||||
import java.util.concurrent.CancellationException;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* loaded from: classes3.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());
|
||||
if (then == null) {
|
||||
this.zzb.onFailure(new NullPointerException("Continuation returned null"));
|
||||
return;
|
||||
}
|
||||
Executor executor = TaskExecutors.zza;
|
||||
then.addOnSuccessListener(executor, this.zzb);
|
||||
then.addOnFailureListener(executor, this.zzb);
|
||||
then.addOnCanceledListener(executor, this.zzb);
|
||||
} catch (RuntimeExecutionException e4) {
|
||||
if (e4.getCause() instanceof Exception) {
|
||||
this.zzb.onFailure((Exception) e4.getCause());
|
||||
} else {
|
||||
this.zzb.onFailure(e4);
|
||||
}
|
||||
} catch (CancellationException unused) {
|
||||
this.zzb.onCanceled();
|
||||
} catch (Exception e5) {
|
||||
this.zzb.onFailure(e5);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user