- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
44 lines
1.9 KiB
Java
44 lines
1.9 KiB
Java
package com.google.android.gms.internal.appset;
|
|
|
|
import android.content.Context;
|
|
import com.google.android.gms.appset.AppSetIdClient;
|
|
import com.google.android.gms.appset.AppSetIdInfo;
|
|
import com.google.android.gms.common.GoogleApiAvailabilityLight;
|
|
import com.google.android.gms.common.api.ApiException;
|
|
import com.google.android.gms.tasks.Continuation;
|
|
import com.google.android.gms.tasks.Task;
|
|
import com.google.android.gms.tasks.Tasks;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzr implements AppSetIdClient {
|
|
private final AppSetIdClient zza;
|
|
private final AppSetIdClient zzb;
|
|
|
|
public zzr(Context context) {
|
|
this.zza = new zzp(context, GoogleApiAvailabilityLight.getInstance());
|
|
this.zzb = zzl.zzc(context);
|
|
}
|
|
|
|
public static /* synthetic */ Task zza(zzr zzrVar, Task task) {
|
|
if (task.isSuccessful() || task.isCanceled()) {
|
|
return task;
|
|
}
|
|
Exception exception = task.getException();
|
|
if (!(exception instanceof ApiException)) {
|
|
return task;
|
|
}
|
|
int statusCode = ((ApiException) exception).getStatusCode();
|
|
return (statusCode == 43001 || statusCode == 43002 || statusCode == 43003 || statusCode == 17) ? zzrVar.zzb.getAppSetIdInfo() : statusCode == 43000 ? Tasks.forException(new Exception("Failed to get app set ID due to an internal error. Please try again later.")) : statusCode != 15 ? task : Tasks.forException(new Exception("The operation to get app set ID timed out. Please try again later."));
|
|
}
|
|
|
|
@Override // com.google.android.gms.appset.AppSetIdClient
|
|
public final Task<AppSetIdInfo> getAppSetIdInfo() {
|
|
return this.zza.getAppSetIdInfo().continueWithTask(new Continuation() { // from class: com.google.android.gms.internal.appset.zzq
|
|
@Override // com.google.android.gms.tasks.Continuation
|
|
public final Object then(Task task) {
|
|
return zzr.zza(zzr.this, task);
|
|
}
|
|
});
|
|
}
|
|
}
|