package n;

import android.content.Context;
import android.view.View;
import com.martsnew.tv.R;
import l6.C1139a;
import m.AbstractC1149j;
import m.C1152m;
import m.MenuC1147h;
import m.SubMenuC1158s;

/* JADX INFO: renamed from: n.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1206e extends C1152m {

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final /* synthetic */ int f14838l = 1;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ C1212h f14839m;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1206e(C1212h c1212h, Context context, MenuC1147h menuC1147h, View view) {
        super(R.attr.actionOverflowMenuStyle, context, view, menuC1147h, true);
        this.f14839m = c1212h;
        this.f14519f = 8388613;
        C1139a c1139a = c1212h.f14853L;
        this.f14521h = c1139a;
        AbstractC1149j abstractC1149j = this.i;
        if (abstractC1149j != null) {
            abstractC1149j.j(c1139a);
        }
    }

    @Override // m.C1152m
    public final void c() {
        switch (this.f14838l) {
            case n4.u0.f15495q /* 0 */:
                C1212h c1212h = this.f14839m;
                c1212h.f14850I = null;
                c1212h.getClass();
                super.c();
                break;
            default:
                C1212h c1212h2 = this.f14839m;
                MenuC1147h menuC1147h = c1212h2.f14856s;
                if (menuC1147h != null) {
                    menuC1147h.c(true);
                }
                c1212h2.H = null;
                super.c();
                break;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1206e(C1212h c1212h, Context context, SubMenuC1158s subMenuC1158s, View view) {
        super(R.attr.actionOverflowMenuStyle, context, view, subMenuC1158s, false);
        this.f14839m = c1212h;
        if ((subMenuC1158s.f14542x.f14509x & 32) != 32) {
            View view2 = c1212h.f14861x;
            this.f14518e = view2 == null ? c1212h.f14860w : view2;
        }
        C1139a c1139a = c1212h.f14853L;
        this.f14521h = c1139a;
        AbstractC1149j abstractC1149j = this.i;
        if (abstractC1149j != null) {
            abstractC1149j.j(c1139a);
        }
    }
}
