what-the-bank/sources/com/google/android/libraries/places/internal/zzdj.java

31 lines
1009 B
Java

package com.google.android.libraries.places.internal;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
/* loaded from: classes2.dex */
public final /* synthetic */ class zzdj implements Continuation {
public static final zzdj zza = new zzdj();
@Override // com.google.android.gms.tasks.Continuation
public final Object then(Task task) {
ApiException apiException;
Exception exception = task.getException();
if (exception == null) {
return task;
}
if (exception instanceof ApiException) {
apiException = (ApiException) exception;
} else {
apiException = new ApiException(new Status(13, exception.toString()));
}
return Tasks.forException(apiException);
}
private /* synthetic */ zzdj() {
}
}