package ῲ.ῲ.ඓ;

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 ῲ.ῲ.ඓ.AbstractC1890;
import ῲ.ῲ.ඓ.㳳.C1912;

/* renamed from: ῲ.ῲ.ඓ.ඓ  reason: contains not printable characters */
/* compiled from: StandaloneActionMode */
public class C1888 extends AbstractC1890 implements C1912.AbstractC1914 {

    /* renamed from: ඓ  reason: contains not printable characters */
    public ActionBarContextView f6385;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public C1912 f6386;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public WeakReference<View> f6387;

    /* renamed from: 㴹  reason: contains not printable characters */
    public AbstractC1890.AbstractC1891 f6388;

    /* renamed from: 㸾  reason: contains not printable characters */
    public Context f6389;

    /* renamed from: 㿎  reason: contains not printable characters */
    public boolean f6390;

    public C1888(Context context, ActionBarContextView actionBarContextView, AbstractC1890.AbstractC1891 k, boolean z) {
        this.f6389 = context;
        this.f6385 = actionBarContextView;
        this.f6388 = k;
        this.f6386 = new C1912(actionBarContextView.getContext()).setDefaultShowAsAction(1);
        this.f6386.setCallback(this);
    }

    @Override // ῲ.ῲ.ඓ.㳳.C1912.AbstractC1914
    public boolean onMenuItemSelected(C1912 r1, MenuItem menuItem) {
        return this.f6388.m4912(this, menuItem);
    }

    @Override // ῲ.ῲ.ඓ.㳳.C1912.AbstractC1914
    public void onMenuModeChange(C1912 r1) {
        m4886();
        this.f6385.m224();
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: ʬ  reason: contains not printable characters */
    public Menu m4881() {
        return this.f6386;
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: ඓ  reason: contains not printable characters */
    public CharSequence m4882() {
        return this.f6385.getSubtitle();
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4885(CharSequence charSequence) {
        this.f6385.setTitle(charSequence);
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: ⁱ  reason: contains not printable characters */
    public void m4886() {
        this.f6388.m4911(this, this.f6386);
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: K  reason: contains not printable characters */
    public void m4890(CharSequence charSequence) {
        this.f6385.setSubtitle(charSequence);
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: 㴹  reason: contains not printable characters */
    public CharSequence m4892() {
        return this.f6385.getTitle();
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: 㸾  reason: contains not printable characters */
    public MenuInflater m4893() {
        return new C1892(this.f6385.getContext());
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: 㿎  reason: contains not printable characters */
    public boolean m4894() {
        return this.f6385.m223();
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4884(int i) {
        m4885(this.f6389.getString(i));
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: K  reason: contains not printable characters */
    public void m4888(int i) {
        m4890(this.f6389.getString(i));
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: ῲ  reason: contains not printable characters */
    public View m4883() {
        WeakReference<View> weakReference = this.f6387;
        if (weakReference != null) {
            return weakReference.get();
        }
        return null;
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: K  reason: contains not printable characters */
    public void m4889(View view) {
        this.f6385.setCustomView(view);
        this.f6387 = view != null ? new WeakReference<>(view) : null;
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: K  reason: contains not printable characters */
    public void m4887() {
        if (!this.f6390) {
            this.f6390 = true;
            this.f6385.sendAccessibilityEvent(32);
            this.f6388.m4910(this);
        }
    }

    @Override // ῲ.ῲ.ඓ.AbstractC1890
    /* renamed from: K  reason: contains not printable characters */
    public void m4891(boolean z) {
        this.f6392 = z;
        this.f6385.setTitleOptional(z);
    }
}
