24 lines
752 B
Java
24 lines
752 B
Java
package com.google.android.gms.common.api;
|
|
|
|
import android.os.Looper;
|
|
import com.google.android.gms.common.api.Result;
|
|
import com.google.android.gms.common.api.internal.BasePendingResult;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class zaf<R extends Result> extends BasePendingResult<R> {
|
|
private final R zae;
|
|
|
|
public zaf(R r) {
|
|
super(Looper.getMainLooper());
|
|
this.zae = r;
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.api.internal.BasePendingResult
|
|
public final R createFailedResult(Status status) {
|
|
if (status.getStatusCode() == this.zae.getStatus().getStatusCode()) {
|
|
return this.zae;
|
|
}
|
|
throw new UnsupportedOperationException("Creating failed results is not supported");
|
|
}
|
|
}
|