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

24 lines
752 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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");
}
}