package m;

import android.content.Context;
import android.view.View;
import com.riyaz.zvytour.R;

/* JADX INFO: renamed from: m.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0853e extends l.m {

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0853e(C0859h c0859h, Context context, l.h hVar, View view) {
        super(R.attr.actionOverflowMenuStyle, context, view, hVar, true);
        this.f9143m = c0859h;
        this.f8758f = 8388613;
        k3.g gVar = c0859h.f9166F;
        this.f8760h = gVar;
        l.j jVar = this.i;
        if (jVar != null) {
            jVar.d(gVar);
        }
    }

    @Override // l.m
    public final void c() {
        switch (this.f9142l) {
            case 0:
                C0859h c0859h = this.f9143m;
                c0859h.f9163C = null;
                c0859h.getClass();
                super.c();
                break;
            default:
                C0859h c0859h2 = this.f9143m;
                l.h hVar = c0859h2.f9169m;
                if (hVar != null) {
                    hVar.c(true);
                }
                c0859h2.f9162B = null;
                super.c();
                break;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0853e(C0859h c0859h, Context context, l.s sVar, View view) {
        super(R.attr.actionOverflowMenuStyle, context, view, sVar, false);
        this.f9143m = c0859h;
        if ((sVar.f8781w.f8748x & 32) != 32) {
            View view2 = c0859h.f9172r;
            this.f8757e = view2 == null ? c0859h.q : view2;
        }
        k3.g gVar = c0859h.f9166F;
        this.f8760h = gVar;
        l.j jVar = this.i;
        if (jVar != null) {
            jVar.d(gVar);
        }
    }
}
