package p037.p041.p049;

import android.content.Context;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.widget.ActionBarContextView;
import java.lang.ref.WeakReference;
import p037.p041.p049.AbstractC1547;
import p037.p041.p049.p050.C1572;
import p037.p041.p051.C1601;

/* JADX INFO: renamed from: މ.ؠ.ލ.ށ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1551 extends AbstractC1547 implements C1572.InterfaceC1573 {

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public Context f4929;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public ActionBarContextView f4930;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public AbstractC1547.InterfaceC1548 f4931;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public WeakReference<View> f4932;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public boolean f4933;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public C1572 f4934;

    public C1551(Context context, ActionBarContextView actionBarContextView, AbstractC1547.InterfaceC1548 interfaceC1548, boolean z) {
        this.f4929 = context;
        this.f4930 = actionBarContextView;
        this.f4931 = interfaceC1548;
        C1572 c1572 = new C1572(actionBarContextView.getContext());
        c1572.f5088 = 1;
        this.f4934 = c1572;
        c1572.f5081 = this;
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ֏ */
    public void mo3008() {
        if (this.f4933) {
            return;
        }
        this.f4933 = true;
        this.f4930.sendAccessibilityEvent(32);
        this.f4931.mo2857(this);
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ֏ */
    public void mo3009(int i) {
        this.f4930.setSubtitle(this.f4929.getString(i));
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ֏ */
    public void mo3010(View view) {
        this.f4930.setCustomView(view);
        this.f4932 = view != null ? new WeakReference<>(view) : null;
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ֏ */
    public void mo3011(CharSequence charSequence) {
        this.f4930.setSubtitle(charSequence);
    }

    @Override // p037.p041.p049.p050.C1572.InterfaceC1573
    /* JADX INFO: renamed from: ֏ */
    public void mo144(C1572 c1572) {
        mo3020();
        C1601 c1601 = this.f4930.f5190;
        if (c1601 != null) {
            c1601.m3142();
        }
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ֏ */
    public void mo3012(boolean z) {
        this.f4923 = z;
        this.f4930.setTitleOptional(z);
    }

    @Override // p037.p041.p049.p050.C1572.InterfaceC1573
    /* JADX INFO: renamed from: ֏ */
    public boolean mo145(C1572 c1572, MenuItem menuItem) {
        return this.f4931.mo2859(this, menuItem);
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ؠ */
    public View mo3013() {
        WeakReference<View> weakReference = this.f4932;
        if (weakReference != null) {
            return weakReference.get();
        }
        return null;
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ؠ */
    public void mo3014(int i) {
        this.f4930.setTitle(this.f4929.getString(i));
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ؠ */
    public void mo3015(CharSequence charSequence) {
        this.f4930.setTitle(charSequence);
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ހ */
    public Menu mo3016() {
        return this.f4934;
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ށ */
    public MenuInflater mo3017() {
        return new C1554(this.f4930.getContext());
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ނ */
    public CharSequence mo3018() {
        return this.f4930.getSubtitle();
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ރ */
    public CharSequence mo3019() {
        return this.f4930.getTitle();
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ބ */
    public void mo3020() {
        this.f4931.mo2858(this, this.f4934);
    }

    @Override // p037.p041.p049.AbstractC1547
    /* JADX INFO: renamed from: ޅ */
    public boolean mo3021() {
        return this.f4930.f246;
    }
}
