package l;

import android.content.Context;
import android.view.View;

/* JADX INFO: loaded from: classes.dex */
public final class j extends k.z {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ int f29731m = 0;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ p f29732n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public j(p pVar, Context context, k.p pVar2, n nVar) {
        super(d.a.actionOverflowMenuStyle, 0, context, nVar, pVar2, true);
        this.f29732n = pVar;
        this.f28952g = 8388613;
        setPresenterCallback(pVar.f29797a0);
    }

    @Override // k.z
    public final void c() {
        int i10 = this.f29731m;
        p pVar = this.f29732n;
        switch (i10) {
            case 0:
                pVar.X = null;
                pVar.f29798b0 = 0;
                super.c();
                break;
            default:
                k.p pVar2 = pVar.f28812c;
                if (pVar2 != null) {
                    pVar2.c(true);
                }
                pVar.W = null;
                super.c();
                break;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public j(p pVar, Context context, k.h0 h0Var, View view) {
        super(d.a.actionOverflowMenuStyle, 0, context, view, h0Var, false);
        this.f29732n = pVar;
        if (!h0Var.B.d()) {
            View view2 = pVar.f29799j;
            this.f28951f = view2 == null ? (View) pVar.f28817h : view2;
        }
        setPresenterCallback(pVar.f29797a0);
    }
}
