what-the-bank/sources/com/google/android/gms/common/api/zab.java

60 lines
1.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.api;
import com.google.android.gms.common.api.PendingResult;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class zab implements PendingResult.StatusListener {
final Batch zaa;
@Override // com.google.android.gms.common.api.PendingResult.StatusListener
public final void onComplete(Status status) {
Object obj;
int i;
int i2;
boolean z;
boolean z2;
Status status2;
PendingResult[] pendingResultArr;
obj = this.zaa.zai;
synchronized (obj) {
if (this.zaa.isCanceled()) {
return;
}
if (!status.isCanceled()) {
if (!status.isSuccess()) {
this.zaa.zaf = true;
}
} else {
this.zaa.zag = true;
}
Batch batch = this.zaa;
i = batch.zae;
batch.zae = i - 1;
Batch batch2 = this.zaa;
i2 = batch2.zae;
if (i2 == 0) {
z = batch2.zag;
if (z) {
super/*com.google.android.gms.common.api.internal.BasePendingResult*/.cancel();
} else {
z2 = batch2.zaf;
if (z2) {
status2 = new Status(13);
} else {
status2 = Status.RESULT_SUCCESS;
}
Batch batch3 = this.zaa;
pendingResultArr = batch3.zah;
batch3.setResult(new BatchResult(status2, pendingResultArr));
}
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public zab(Batch batch) {
this.zaa = batch;
}
}