package ῲ.ῲ.K;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.util.TypedValue;
import android.view.ContextThemeWrapper;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.Interpolator;
import androidx.appcompat.R$attr;
import androidx.appcompat.R$bool;
import androidx.appcompat.R$id;
import androidx.appcompat.R$styleable;
import androidx.appcompat.widget.ActionBarContainer;
import androidx.appcompat.widget.ActionBarContextView;
import androidx.appcompat.widget.ActionBarOverlayLayout;
import androidx.appcompat.widget.ScrollingTabContainerView;
import androidx.appcompat.widget.Toolbar;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import ඓ.K.K.K.C1293;
import ῲ.ᨨ.ᨨ.AbstractC1738;
import ῲ.ᨨ.ᨨ.AbstractC1750;
import ῲ.ᨨ.ᨨ.C1729;
import ῲ.ᨨ.ᨨ.C1749;
import ῲ.ᨨ.ᨨ.C1768;
import ῲ.ῲ.ඓ.AbstractC1890;
import ῲ.ῲ.ඓ.C1892;
import ῲ.ῲ.ඓ.C1938;
import ῲ.ῲ.ඓ.㳳.C1912;
import ῲ.ῲ.K.AbstractC1963;
import ῲ.ῲ.㴹.AbstractC2002;
import ῲ.ῲ.㴹.C2040;

/* renamed from: ῲ.ῲ.K.ᑓ  reason: contains not printable characters */
/* compiled from: WindowDecorActionBar */
public class C1950 extends AbstractC1963 implements ActionBarOverlayLayout.AbstractC0059 {

    /* renamed from: 㮔  reason: contains not printable characters */
    public static final Interpolator f6643 = new AccelerateInterpolator();

    /* renamed from: 䃖  reason: contains not printable characters */
    public static final Interpolator f6644 = new DecelerateInterpolator();

    /* renamed from: ʬ  reason: contains not printable characters */
    public ActionBarOverlayLayout f6645;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public ArrayList<AbstractC1963.AbstractC1965> f6646 = new ArrayList<>();

    /* renamed from: Ԛ  reason: contains not printable characters */
    public boolean f6647 = true;

    /* renamed from: ؿ  reason: contains not printable characters */
    public int f6648 = 0;

    /* renamed from: ݜ  reason: contains not printable characters */
    public boolean f6649;

    /* renamed from: ඓ  reason: contains not printable characters */
    public AbstractC2002 f6650;

    /* renamed from: ᑓ  reason: contains not printable characters */
    public final AbstractC1738 f6651 = new C1953();

    /* renamed from: ᓆ  reason: contains not printable characters */
    public boolean f6652;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public boolean f6653 = true;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public AbstractC1890 f6654;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public boolean f6655;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Context f6656;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public View f6657;

    /* renamed from: K  reason: contains not printable characters */
    public Context f6658;

    /* renamed from: ゎ  reason: contains not printable characters */
    public final AbstractC1738 f6659 = new C1952();

    /* renamed from: ト  reason: contains not printable characters */
    public final AbstractC1750 f6660 = new C1951();

    /* renamed from: 㑃  reason: contains not printable characters */
    public AbstractC1890.AbstractC1891 f6661;

    /* renamed from: 㗗  reason: contains not printable characters */
    public boolean f6662;

    /* renamed from: 㗽  reason: contains not printable characters */
    public boolean f6663;

    /* renamed from: 㳳  reason: contains not printable characters */
    public C1954 f6664;

    /* renamed from: 㴪  reason: contains not printable characters */
    public boolean f6665;

    /* renamed from: 㴹  reason: contains not printable characters */
    public ActionBarContextView f6666;

    /* renamed from: 㶋  reason: contains not printable characters */
    public C1938 f6667;

    /* renamed from: 㸾  reason: contains not printable characters */
    public ActionBarContainer f6668;

    /* renamed from: 㿎  reason: contains not printable characters */
    public ScrollingTabContainerView f6669;

    /* renamed from: 䀟  reason: contains not printable characters */
    public boolean f6670;

    /* renamed from: 䁗  reason: contains not printable characters */
    public boolean f6671;

    /* renamed from: ῲ.ῲ.K.ᑓ$ʬ  reason: contains not printable characters */
    /* compiled from: WindowDecorActionBar */
    public class C1951 implements AbstractC1750 {
        public C1951() {
        }
    }

    /* renamed from: ῲ.ῲ.K.ᑓ$ῲ  reason: contains not printable characters */
    /* compiled from: WindowDecorActionBar */
    public class C1952 extends C1749 {
        public C1952() {
        }

        @Override // ῲ.ᨨ.ᨨ.AbstractC1738
        /* renamed from: K  reason: contains not printable characters */
        public void m5053(View view) {
            C1950 r2 = C1950.this;
            r2.f6667 = null;
            r2.f6668.requestLayout();
        }
    }

    /* renamed from: ῲ.ῲ.K.ᑓ$K  reason: contains not printable characters */
    /* compiled from: WindowDecorActionBar */
    public class C1953 extends C1749 {
        public C1953() {
        }

        @Override // ῲ.ᨨ.ᨨ.AbstractC1738
        /* renamed from: K  reason: contains not printable characters */
        public void m5054(View view) {
            View view2;
            C1950 r2 = C1950.this;
            if (r2.f6653 && (view2 = r2.f6657) != null) {
                view2.setTranslationY(0.0f);
                C1950.this.f6668.setTranslationY(0.0f);
            }
            C1950.this.f6668.setVisibility(8);
            C1950.this.f6668.setTransitioning(false);
            C1950 r22 = C1950.this;
            r22.f6667 = null;
            r22.m5042();
            ActionBarOverlayLayout actionBarOverlayLayout = C1950.this.f6645;
            if (actionBarOverlayLayout != null) {
                C1729.m4451(actionBarOverlayLayout);
            }
        }
    }

    /* renamed from: ῲ.ῲ.K.ᑓ$㸾  reason: contains not printable characters */
    /* compiled from: WindowDecorActionBar */
    public class C1954 extends AbstractC1890 implements C1912.AbstractC1914 {

        /* renamed from: ඓ  reason: contains not printable characters */
        public final C1912 f6675;

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

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

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

        public C1954(Context context, AbstractC1890.AbstractC1891 k) {
            this.f6678 = context;
            this.f6677 = k;
            this.f6675 = new C1912(context).setDefaultShowAsAction(1);
            this.f6675.setCallback(this);
        }

        @Override // ῲ.ῲ.ඓ.㳳.C1912.AbstractC1914
        public boolean onMenuItemSelected(C1912 r1, MenuItem menuItem) {
            AbstractC1890.AbstractC1891 k = this.f6677;
            if (k != null) {
                return k.m4912(this, menuItem);
            }
            return false;
        }

        @Override // ῲ.ῲ.ඓ.㳳.C1912.AbstractC1914
        public void onMenuModeChange(C1912 r1) {
            if (this.f6677 != null) {
                m5060();
                C1950.this.f6666.m224();
            }
        }

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

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

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

        @Override // ῲ.ῲ.ඓ.AbstractC1890
        /* renamed from: ⁱ  reason: contains not printable characters */
        public void m5060() {
            if (C1950.this.f6664 == this) {
                this.f6675.stopDispatchingItemsChanged();
                try {
                    this.f6677.m4911(this, this.f6675);
                } finally {
                    this.f6675.startDispatchingItemsChanged();
                }
            }
        }

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

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

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

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

        @Override // ῲ.ῲ.ඓ.AbstractC1890
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m5058(int i) {
            m5059(C1950.this.f6658.getResources().getString(i));
        }

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

        @Override // ῲ.ῲ.ඓ.AbstractC1890
        /* renamed from: K  reason: contains not printable characters */
        public void m5061() {
            C1950 r0 = C1950.this;
            if (r0.f6664 == this) {
                boolean z = r0.f6663;
                boolean z2 = r0.f6649;
                boolean z3 = true;
                if (z || z2) {
                    z3 = false;
                }
                if (!z3) {
                    C1950 r02 = C1950.this;
                    r02.f6654 = this;
                    r02.f6661 = this.f6677;
                } else {
                    this.f6677.m4910(this);
                }
                this.f6677 = null;
                C1950.this.m5031(false);
                C1950.this.f6666.m226();
                ((C2040) C1950.this.f6650).f6933.sendAccessibilityEvent(32);
                C1950 r1 = C1950.this;
                r1.f6645.setHideOnContentScrollEnabled(r1.f6665);
                C1950.this.f6664 = null;
            }
        }

        @Override // ῲ.ῲ.ඓ.AbstractC1890
        /* renamed from: K  reason: contains not printable characters */
        public void m5063(View view) {
            C1950.this.f6666.setCustomView(view);
            this.f6676 = new WeakReference<>(view);
        }

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

        @Override // ῲ.ῲ.ඓ.AbstractC1890
        /* renamed from: K  reason: contains not printable characters */
        public void m5062(int i) {
            m5064(C1950.this.f6658.getResources().getString(i));
        }
    }

    public C1950(Activity activity, boolean z) {
        new ArrayList();
        View decorView = activity.getWindow().getDecorView();
        m5038(decorView);
        if (!z) {
            this.f6657 = decorView.findViewById(16908290);
        }
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    public void addOnMenuVisibilityListener(AbstractC1963.AbstractC1965 r2) {
        this.f6646.add(r2);
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    public void removeOnMenuVisibilityListener(AbstractC1963.AbstractC1965 r2) {
        this.f6646.remove(r2);
    }

    @Override // androidx.appcompat.widget.ActionBarOverlayLayout.AbstractC0059
    /* renamed from: ʬ  reason: contains not printable characters */
    public void m5023() {
        if (!this.f6649) {
            this.f6649 = true;
            m5052(true);
        }
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: ඓ  reason: contains not printable characters */
    public void m5025(boolean z) {
        m5036(z ? 8 : 0, 8);
    }

    /* renamed from: ᕣ  reason: contains not printable characters */
    public void m5026(boolean z) {
        if (!z || this.f6645.m231()) {
            this.f6665 = z;
            this.f6645.setHideOnContentScrollEnabled(z);
            return;
        }
        throw new IllegalStateException("Action bar must be in overlay mode (Window.FEATURE_OVERLAY_ACTION_BAR) to enable hide on content scroll");
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public void m5027(boolean z) {
        View view;
        View view2;
        C1938 r0 = this.f6667;
        if (r0 != null) {
            r0.m5014();
        }
        this.f6668.setVisibility(0);
        if (this.f6648 != 0 || (!this.f6652 && !z)) {
            this.f6668.setAlpha(1.0f);
            this.f6668.setTranslationY(0.0f);
            if (this.f6653 && (view = this.f6657) != null) {
                view.setTranslationY(0.0f);
            }
            this.f6659.m4535(null);
        } else {
            this.f6668.setTranslationY(0.0f);
            float f = (float) (-this.f6668.getHeight());
            if (z) {
                int[] iArr = {0, 0};
                this.f6668.getLocationInWindow(iArr);
                f -= (float) iArr[1];
            }
            this.f6668.setTranslationY(f);
            C1938 r5 = new C1938();
            C1768 r2 = C1729.m4470(this.f6668);
            r2.m4616(0.0f);
            r2.m4620(this.f6660);
            if (!r5.f6619) {
                r5.f6621.add(r2);
            }
            if (this.f6653 && (view2 = this.f6657) != null) {
                view2.setTranslationY(f);
                C1768 r02 = C1729.m4470(this.f6657);
                r02.m4616(0.0f);
                if (!r5.f6619) {
                    r5.f6621.add(r02);
                }
            }
            Interpolator interpolator = f6644;
            if (!r5.f6619) {
                r5.f6618 = interpolator;
            }
            if (!r5.f6619) {
                r5.f6620 = 250;
            }
            AbstractC1738 r03 = this.f6659;
            if (!r5.f6619) {
                r5.f6623 = r03;
            }
            this.f6667 = r5;
            r5.m5013();
        }
        ActionBarOverlayLayout actionBarOverlayLayout = this.f6645;
        if (actionBarOverlayLayout != null) {
            C1729.m4451(actionBarOverlayLayout);
        }
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m5029(boolean z) {
        if (z != this.f6671) {
            this.f6671 = z;
            int size = this.f6646.size();
            for (int i = 0; i < size; i++) {
                this.f6646.get(i).m5095(z);
            }
        }
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: ⁱ  reason: contains not printable characters */
    public int m5030() {
        return ((C2040) this.f6650).f6931;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5038(View view) {
        AbstractC2002 r0;
        this.f6645 = (ActionBarOverlayLayout) view.findViewById(R$id.decor_content_parent);
        ActionBarOverlayLayout actionBarOverlayLayout = this.f6645;
        if (actionBarOverlayLayout != null) {
            actionBarOverlayLayout.setActionBarVisibilityCallback(this);
        }
        View findViewById = view.findViewById(R$id.action_bar);
        if (findViewById instanceof AbstractC2002) {
            r0 = (AbstractC2002) findViewById;
        } else if (findViewById instanceof Toolbar) {
            r0 = ((Toolbar) findViewById).getWrapper();
        } else {
            StringBuilder r1 = C1293.m3416("Can't make a decor toolbar out of ");
            r1.append(findViewById != null ? findViewById.getClass().getSimpleName() : "null");
            throw new IllegalStateException(r1.toString());
        }
        this.f6650 = r0;
        this.f6666 = (ActionBarContextView) view.findViewById(R$id.action_context_bar);
        this.f6668 = (ActionBarContainer) view.findViewById(R$id.action_bar_container);
        AbstractC2002 r6 = this.f6650;
        if (r6 == null || this.f6666 == null || this.f6668 == null) {
            throw new IllegalStateException(C1950.class.getSimpleName() + " can only be used with a compatible window decor layout");
        }
        this.f6658 = ((C2040) r6).m5294();
        boolean z = (((C2040) this.f6650).f6931 & 4) != 0;
        if (z) {
            this.f6655 = true;
        }
        Context context = this.f6658;
        m5043((context.getApplicationInfo().targetSdkVersion < 14) || z);
        m5044(context.getResources().getBoolean(R$bool.abc_action_bar_embed_tabs));
        TypedArray obtainStyledAttributes = this.f6658.obtainStyledAttributes(null, R$styleable.ActionBar, R$attr.actionBarStyle, 0);
        if (obtainStyledAttributes.getBoolean(R$styleable.ActionBar_hideOnContentScroll, false)) {
            m5026(true);
        }
        int dimensionPixelSize = obtainStyledAttributes.getDimensionPixelSize(R$styleable.ActionBar_elevation, 0);
        if (dimensionPixelSize != 0) {
            m5034((float) dimensionPixelSize);
        }
        obtainStyledAttributes.recycle();
    }

    /* renamed from: 㑃  reason: contains not printable characters */
    public void m5042() {
        AbstractC1890.AbstractC1891 k = this.f6661;
        if (k != null) {
            k.m4910(this.f6654);
            this.f6654 = null;
            this.f6661 = null;
        }
    }

    /* renamed from: 㳳  reason: contains not printable characters */
    public final void m5044(boolean z) {
        this.f6662 = z;
        if (!this.f6662) {
            ((C2040) this.f6650).m5298((ScrollingTabContainerView) null);
            this.f6668.setTabContainer(this.f6669);
        } else {
            this.f6668.setTabContainer(null);
            ((C2040) this.f6650).m5298(this.f6669);
        }
        boolean z2 = true;
        boolean z3 = m5051() == 2;
        ScrollingTabContainerView scrollingTabContainerView = this.f6669;
        if (scrollingTabContainerView != null) {
            if (z3) {
                scrollingTabContainerView.setVisibility(0);
                ActionBarOverlayLayout actionBarOverlayLayout = this.f6645;
                if (actionBarOverlayLayout != null) {
                    C1729.m4451(actionBarOverlayLayout);
                }
            } else {
                scrollingTabContainerView.setVisibility(8);
            }
        }
        ((C2040) this.f6650).f6933.setCollapsible(!this.f6662 && z3);
        ActionBarOverlayLayout actionBarOverlayLayout2 = this.f6645;
        if (this.f6662 || !z3) {
            z2 = false;
        }
        actionBarOverlayLayout2.setHasNonEmbeddedTabs(z2);
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: 㴹  reason: contains not printable characters */
    public void m5045(boolean z) {
        C1938 r1;
        this.f6652 = z;
        if (!z && (r1 = this.f6667) != null) {
            r1.m5014();
        }
    }

    @Override // androidx.appcompat.widget.ActionBarOverlayLayout.AbstractC0059
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m5047() {
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m5048(boolean z) {
        m5036(z ? 4 : 0, 4);
    }

    /* renamed from: 㿎  reason: contains not printable characters */
    public void m5050(boolean z) {
        View view;
        C1938 r0 = this.f6667;
        if (r0 != null) {
            r0.m5014();
        }
        if (this.f6648 != 0 || (!this.f6652 && !z)) {
            this.f6651.m4535(null);
            return;
        }
        this.f6668.setAlpha(1.0f);
        this.f6668.setTransitioning(true);
        C1938 r02 = new C1938();
        float f = (float) (-this.f6668.getHeight());
        if (z) {
            int[] iArr = {0, 0};
            this.f6668.getLocationInWindow(iArr);
            f -= (float) iArr[1];
        }
        C1768 r5 = C1729.m4470(this.f6668);
        r5.m4616(f);
        r5.m4620(this.f6660);
        if (!r02.f6619) {
            r02.f6621.add(r5);
        }
        if (this.f6653 && (view = this.f6657) != null) {
            C1768 r52 = C1729.m4470(view);
            r52.m4616(f);
            if (!r02.f6619) {
                r02.f6621.add(r52);
            }
        }
        Interpolator interpolator = f6643;
        if (!r02.f6619) {
            r02.f6618 = interpolator;
        }
        if (!r02.f6619) {
            r02.f6620 = 250;
        }
        AbstractC1738 r53 = this.f6651;
        if (!r02.f6619) {
            r02.f6623 = r53;
        }
        this.f6667 = r02;
        r02.m5013();
    }

    /* renamed from: 䁗  reason: contains not printable characters */
    public int m5051() {
        return ((C2040) this.f6650).f6935;
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public void m5031(boolean z) {
        C1768 r9;
        C1768 r0;
        if (z) {
            if (!this.f6670) {
                this.f6670 = true;
                ActionBarOverlayLayout actionBarOverlayLayout = this.f6645;
                if (actionBarOverlayLayout != null) {
                    actionBarOverlayLayout.setShowingForActionMode(true);
                }
                m5052(false);
            }
        } else if (this.f6670) {
            this.f6670 = false;
            ActionBarOverlayLayout actionBarOverlayLayout2 = this.f6645;
            if (actionBarOverlayLayout2 != null) {
                actionBarOverlayLayout2.setShowingForActionMode(false);
            }
            m5052(false);
        }
        if (C1729.m4512(this.f6668)) {
            if (z) {
                r9 = ((C2040) this.f6650).m5295(4, 100);
                r0 = this.f6666.m5257(0, 200);
            } else {
                r0 = ((C2040) this.f6650).m5295(0, 200);
                r9 = this.f6666.m5257(8, 100);
            }
            C1938 r1 = new C1938();
            r1.f6621.add(r9);
            View view = r9.f6101.get();
            long duration = view != null ? view.animate().getDuration() : 0;
            View view2 = r0.f6101.get();
            if (view2 != null) {
                view2.animate().setStartDelay(duration);
            }
            r1.f6621.add(r0);
            r1.m5013();
        } else if (z) {
            ((C2040) this.f6650).f6933.setVisibility(4);
            this.f6666.setVisibility(0);
        } else {
            ((C2040) this.f6650).f6933.setVisibility(0);
            this.f6666.setVisibility(8);
        }
    }

    /* renamed from: 䁗  reason: contains not printable characters */
    public final void m5052(boolean z) {
        if (this.f6670 || (!this.f6663 && !this.f6649)) {
            if (!this.f6647) {
                this.f6647 = true;
                m5027(z);
            }
        } else if (this.f6647) {
            this.f6647 = false;
            m5050(z);
        }
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: ʬ  reason: contains not printable characters */
    public void m5024(boolean z) {
        if (!this.f6655) {
            m5048(z);
        }
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean m5046() {
        AbstractC2002 r0 = this.f6650;
        if (r0 == null || !((C2040) r0).f6933.hasExpandedActionView()) {
            return false;
        }
        ((C2040) this.f6650).f6933.collapseActionView();
        return true;
    }

    @Override // androidx.appcompat.widget.ActionBarOverlayLayout.AbstractC0059
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m5028() {
        C1938 r0 = this.f6667;
        if (r0 != null) {
            r0.m5014();
            this.f6667 = null;
        }
    }

    /* renamed from: 㑃  reason: contains not printable characters */
    public void m5043(boolean z) {
        ((C2040) this.f6650).m5300(z);
    }

    public C1950(Dialog dialog) {
        new ArrayList();
        m5038(dialog.getWindow().getDecorView());
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: 㿎  reason: contains not printable characters */
    public Context m5049() {
        if (this.f6656 == null) {
            TypedValue typedValue = new TypedValue();
            this.f6658.getTheme().resolveAttribute(R$attr.actionBarWidgetTheme, typedValue, true);
            int i = typedValue.resourceId;
            if (i != 0) {
                this.f6656 = new ContextThemeWrapper(this.f6658, i);
            } else {
                this.f6656 = this.f6658;
            }
        }
        return this.f6656;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5034(float f) {
        C1729.m4472(this.f6668, f);
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: K  reason: contains not printable characters */
    public void m5037(Configuration configuration) {
        m5044(this.f6658.getResources().getBoolean(R$bool.abc_action_bar_embed_tabs));
    }

    @Override // androidx.appcompat.widget.ActionBarOverlayLayout.AbstractC0059
    /* renamed from: K  reason: contains not printable characters */
    public void m5035(int i) {
        this.f6648 = i;
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: K  reason: contains not printable characters */
    public void m5039(CharSequence charSequence) {
        C2040 r0 = (C2040) this.f6650;
        if (!r0.f6939) {
            r0.m5299(charSequence);
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5036(int i, int i2) {
        int i3 = ((C2040) this.f6650).f6931;
        if ((i2 & 4) != 0) {
            this.f6655 = true;
        }
        ((C2040) this.f6650).m5296((i & i2) | ((~i2) & i3));
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: K  reason: contains not printable characters */
    public AbstractC1890 m5032(AbstractC1890.AbstractC1891 k) {
        C1954 r0 = this.f6664;
        if (r0 != null) {
            r0.m5061();
        }
        this.f6645.setHideOnContentScrollEnabled(false);
        this.f6666.m228();
        C1954 r02 = new C1954(this.f6666.getContext(), k);
        r02.f6675.stopDispatchingItemsChanged();
        try {
            if (!r02.f6677.m4909(r02, r02.f6675)) {
                return null;
            }
            this.f6664 = r02;
            r02.m5060();
            this.f6666.m227(r02);
            m5031(true);
            this.f6666.sendAccessibilityEvent(32);
            return r02;
        } finally {
            r02.f6675.startDispatchingItemsChanged();
        }
    }

    @Override // androidx.appcompat.widget.ActionBarOverlayLayout.AbstractC0059
    /* renamed from: K  reason: contains not printable characters */
    public void m5040(boolean z) {
        this.f6653 = z;
    }

    @Override // androidx.appcompat.widget.ActionBarOverlayLayout.AbstractC0059
    /* renamed from: K  reason: contains not printable characters */
    public void m5033() {
        if (this.f6649) {
            this.f6649 = false;
            m5052(true);
        }
    }

    @Override // ῲ.ῲ.K.AbstractC1963
    /* renamed from: K  reason: contains not printable characters */
    public boolean m5041(int i, KeyEvent keyEvent) {
        C1912 r0;
        C1954 r02 = this.f6664;
        if (r02 == null || (r0 = r02.f6675) == null) {
            return false;
        }
        boolean z = true;
        if (KeyCharacterMap.load(keyEvent != null ? keyEvent.getDeviceId() : -1).getKeyboardType() == 1) {
            z = false;
        }
        r0.setQwertyMode(z);
        return r0.performShortcut(i, keyEvent, 0);
    }
}
