package com.google.android.gms.internal.ads;

import android.os.Bundle;
import android.os.DeadObjectException;
import androidx.annotation.Nullable;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class sk implements com.google.android.gms.common.internal.b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ uk f16462a;

    public sk(uk ukVar) {
        Objects.requireNonNull(ukVar);
        this.f16462a = ukVar;
    }

    @Override // com.google.android.gms.common.internal.b
    public final void onConnected(@Nullable Bundle bundle) {
        uk ukVar = this.f16462a;
        synchronized (ukVar.f17291c) {
            try {
            } catch (DeadObjectException unused) {
                this.f16462a.d();
            }
            if (ukVar.e() != null) {
                ukVar.g(ukVar.e().d());
                this.f16462a.f17291c.notifyAll();
            } else {
                this.f16462a.f17291c.notifyAll();
            }
        }
    }

    @Override // com.google.android.gms.common.internal.b
    public final void onConnectionSuspended(int i10) {
        uk ukVar = this.f16462a;
        synchronized (ukVar.f17291c) {
            ukVar.g(null);
            ukVar.f17291c.notifyAll();
        }
    }
}
