package h0;

import a.AbstractC0386a;
import android.app.Dialog;
import android.view.View;

/* JADX INFO: renamed from: h0.p, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1016p extends AbstractC0386a {

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ C1019t f13221t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final /* synthetic */ DialogInterfaceOnCancelListenerC1017q f13222u;

    public C1016p(DialogInterfaceOnCancelListenerC1017q dialogInterfaceOnCancelListenerC1017q, C1019t c1019t) {
        this.f13222u = dialogInterfaceOnCancelListenerC1017q;
        this.f13221t = c1019t;
    }

    @Override // a.AbstractC0386a
    public final View v(int i) {
        C1019t c1019t = this.f13221t;
        if (c1019t.w()) {
            return c1019t.v(i);
        }
        Dialog dialog = this.f13222u.f13237z0;
        if (dialog != null) {
            return dialog.findViewById(i);
        }
        return null;
    }

    @Override // a.AbstractC0386a
    public final boolean w() {
        return this.f13221t.w() || this.f13222u.f13226D0;
    }
}
