package androidx.appcompat.widget;

import android.content.Context;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewPropertyAnimator;
import android.view.Window;
import android.view.WindowInsets;
import android.widget.OverScroller;
import ar.tvplayer.tv.R;
import defpackage.AbstractC0902;
import defpackage.AbstractC2873;
import defpackage.AbstractC5164;
import defpackage.C0062;
import defpackage.C1065;
import defpackage.C1084;
import defpackage.C1100;
import defpackage.C1524;
import defpackage.C2228;
import defpackage.C2387;
import defpackage.C2772;
import defpackage.C3094;
import defpackage.C3345;
import defpackage.C3850;
import defpackage.C3966;
import defpackage.C4250;
import defpackage.C4274;
import defpackage.C4285;
import defpackage.C4384;
import defpackage.C4436;
import defpackage.C4510;
import defpackage.C4697;
import defpackage.InterfaceC0070;
import defpackage.InterfaceC0105;
import defpackage.InterfaceC1648;
import defpackage.InterfaceC2316;
import defpackage.InterfaceC4653;
import defpackage.MenuC2418;
import defpackage.RunnableC2721;
import java.util.WeakHashMap;

/* loaded from: classes3.dex */
public class ActionBarOverlayLayout extends ViewGroup implements InterfaceC4653, InterfaceC1648 {

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public static final int[] f106 = {R.attr._11_res_0x7f040005, android.R.attr.windowContentOverlay};

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public static final C4250 f107;

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public static final Rect f108;

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public boolean f109;

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public C4250 f110;

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final Rect f111;

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public C4250 f112;

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public final RunnableC2721 f113;

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public C4250 f114;

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public OverScroller f115;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public boolean f116;

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public final RunnableC2721 f117;

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public C4250 f118;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public boolean f119;

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public final Rect f120;

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public boolean f121;

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public InterfaceC0070 f122;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public boolean f123;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public boolean f124;

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public final C3345 f125;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public Drawable f126;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f127;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public InterfaceC0105 f128;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public int f129;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public int f130;

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public final C4697 f131;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public int f132;

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public ViewPropertyAnimator f133;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final Rect f134;

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public final Rect f135;

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public final C1524 f136;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public ActionBarContainer f137;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public ContentFrameLayout f138;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public final Rect f139;

    static {
        int i = Build.VERSION.SDK_INT;
        AbstractC0902 c2228 = i >= 36 ? new C2228() : i >= 35 ? new C4510() : i >= 34 ? new C4274() : i >= 31 ? new C1100() : i >= 30 ? new C1084() : i >= 29 ? new C3850() : new C4285();
        c2228.mo3024(C4384.m9389(0, 1, 0, 1));
        f107 = c2228.mo3027();
        f108 = new Rect();
    }

    public ActionBarOverlayLayout(Context context) {
        this(context, null);
    }

    public ActionBarOverlayLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.f127 = 0;
        this.f135 = new Rect();
        this.f120 = new Rect();
        this.f134 = new Rect();
        this.f111 = new Rect();
        this.f139 = new Rect();
        this.f121 = true;
        this.f124 = false;
        C4250 c4250 = C4250.f15917;
        this.f118 = c4250;
        this.f114 = c4250;
        this.f110 = c4250;
        this.f112 = c4250;
        this.f125 = new C3345(0, this);
        this.f113 = new RunnableC2721(this, 0);
        this.f117 = new RunnableC2721(this, 1);
        m29(context);
        this.f131 = new C4697((byte) 0, 4);
        C1524 c1524 = new C1524(context);
        c1524.setWillNotDraw(true);
        this.f136 = c1524;
        addView(c1524);
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public static boolean m19(View view, int i, int i2, int i3, int i4) {
        boolean z;
        C3094 c3094 = (C3094) view.getLayoutParams();
        if (((ViewGroup.MarginLayoutParams) c3094).leftMargin != i) {
            ((ViewGroup.MarginLayoutParams) c3094).leftMargin = i;
            z = true;
        } else {
            z = false;
        }
        if (((ViewGroup.MarginLayoutParams) c3094).topMargin != i2) {
            ((ViewGroup.MarginLayoutParams) c3094).topMargin = i2;
            z = true;
        }
        if (((ViewGroup.MarginLayoutParams) c3094).rightMargin != i3) {
            ((ViewGroup.MarginLayoutParams) c3094).rightMargin = i3;
            z = true;
        }
        if (((ViewGroup.MarginLayoutParams) c3094).bottomMargin == i4) {
            return z;
        }
        ((ViewGroup.MarginLayoutParams) c3094).bottomMargin = i4;
        return true;
    }

    @Override // android.view.ViewGroup
    public final boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return layoutParams instanceof C3094;
    }

    @Override // android.view.View
    public final void draw(Canvas canvas) {
        int translationY;
        super.draw(canvas);
        if (this.f126 != null) {
            if (this.f137.getVisibility() == 0) {
                translationY = (int) (this.f137.getTranslationY() + this.f137.getBottom() + 0.5f);
            } else {
                translationY = 0;
            }
            this.f126.setBounds(0, translationY, getWidth(), this.f126.getIntrinsicHeight() + translationY);
            this.f126.draw(canvas);
        }
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateDefaultLayoutParams() {
        return new C3094(-1, -1);
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
        return new C3094(getContext(), attributeSet);
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new C3094(layoutParams);
    }

    public int getActionBarHideOffset() {
        ActionBarContainer actionBarContainer = this.f137;
        if (actionBarContainer != null) {
            return -((int) actionBarContainer.getTranslationY());
        }
        return 0;
    }

    @Override // android.view.ViewGroup
    public int getNestedScrollAxes() {
        C4697 c4697 = this.f131;
        return c4697.f17369 | c4697.f17367;
    }

    public CharSequence getTitle() {
        m28();
        return ((C0062) this.f128).f1272.getTitle();
    }

    @Override // android.view.View
    public final WindowInsets onApplyWindowInsets(WindowInsets windowInsets) {
        boolean zM19;
        m28();
        int windowSystemUiVisibility = getWindowSystemUiVisibility();
        boolean z = true;
        boolean z2 = (windowSystemUiVisibility & 256) != 0;
        boolean z3 = (windowSystemUiVisibility & 1536) != 0;
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        C1524 c1524 = this.f136;
        C4250 c4250 = f107;
        Rect rect = this.f139;
        AbstractC5164.m10667(c1524, c4250, rect);
        boolean zEquals = rect.equals(f108);
        this.f121 = !zEquals;
        boolean z4 = zEquals || (z2 && z3);
        this.f124 = z4;
        InterfaceC0070 interfaceC0070 = this.f122;
        if (interfaceC0070 != null) {
            ((C3966) interfaceC0070).f14971 = (z2 || z4) ? false : true;
        }
        C4250 c4250M9194 = C4250.m9194(windowInsets, this);
        C2387 c2387 = c4250M9194.f15918;
        C4384 c4384Mo5229 = c2387.mo5229();
        int i = c4384Mo5229.f16425;
        int i2 = c4384Mo5229.f16425;
        int i3 = c4384Mo5229.f16426;
        int i4 = c4384Mo5229.f16424;
        this.f111.set(i, i3, i4, c4384Mo5229.f16427);
        if (this.f124) {
            C4384 c4384Mo2921 = c2387.mo2921(2);
            int i5 = c4384Mo2921.f16425;
            int i6 = c4384Mo2921.f16424;
            this.f137.setPadding(i2 - i5, i3, i4 - i6, 0);
            zM19 = m19(this.f137, c4384Mo2921.f16425, 0, i6, 0);
        } else {
            this.f137.setPadding(0, 0, 0, 0);
            zM19 = m19(this.f137, i2, i3, i4, 0);
        }
        Rect rect2 = this.f135;
        AbstractC5164.m10667(this, c4250M9194, rect2);
        C4250 c4250Mo4445 = c2387.mo4445(rect2.left, rect2.top, rect2.right, rect2.bottom);
        this.f118 = c4250Mo4445;
        if (!this.f114.equals(c4250Mo4445)) {
            this.f114 = this.f118;
            zM19 = true;
        }
        Rect rect3 = this.f120;
        if (rect3.equals(rect2)) {
            z = zM19;
        } else {
            rect3.set(rect2);
        }
        if (z) {
            requestLayout();
        }
        return c2387.mo2629().f15918.mo3842().f15918.mo3845().m9196();
    }

    @Override // android.view.View
    public final void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        m29(getContext());
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        requestApplyInsets();
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        m22();
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onLayout(boolean z, int i, int i2, int i3, int i4) {
        int childCount = getChildCount();
        int paddingLeft = getPaddingLeft();
        int paddingTop = getPaddingTop();
        for (int i5 = 0; i5 < childCount; i5++) {
            View childAt = getChildAt(i5);
            if (childAt.getVisibility() != 8) {
                C3094 c3094 = (C3094) childAt.getLayoutParams();
                int measuredWidth = childAt.getMeasuredWidth();
                int measuredHeight = childAt.getMeasuredHeight();
                int i6 = ((ViewGroup.MarginLayoutParams) c3094).leftMargin + paddingLeft;
                int i7 = ((ViewGroup.MarginLayoutParams) c3094).topMargin + paddingTop;
                childAt.layout(i6, i7, measuredWidth + i6, measuredHeight + i7);
            }
        }
    }

    @Override // android.view.View
    public final void onMeasure(int i, int i2) {
        int measuredHeight;
        m28();
        measureChildWithMargins(this.f137, i, 0, i2, 0);
        C3094 c3094 = (C3094) this.f137.getLayoutParams();
        int iMax = Math.max(0, this.f137.getMeasuredWidth() + ((ViewGroup.MarginLayoutParams) c3094).leftMargin + ((ViewGroup.MarginLayoutParams) c3094).rightMargin);
        int iMax2 = Math.max(0, this.f137.getMeasuredHeight() + ((ViewGroup.MarginLayoutParams) c3094).topMargin + ((ViewGroup.MarginLayoutParams) c3094).bottomMargin);
        int iCombineMeasuredStates = View.combineMeasuredStates(0, this.f137.getMeasuredState());
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        boolean z = (getWindowSystemUiVisibility() & 256) != 0;
        if (z) {
            measuredHeight = this.f130;
            if (this.f124) {
                measuredHeight += this.f111.top;
            }
            if (this.f123 && this.f137.getTabContainer() != null) {
                measuredHeight += this.f130;
            }
        } else {
            measuredHeight = this.f137.getVisibility() != 8 ? this.f137.getMeasuredHeight() : 0;
        }
        Rect rect = this.f135;
        Rect rect2 = this.f134;
        rect2.set(rect);
        C4250 c4250 = this.f118;
        this.f110 = c4250;
        if (this.f109 || z || !this.f121) {
            C4384 c4384M9389 = this.f124 ? C4384.m9389(c4250.f15918.mo5229().f16425, Math.max(this.f110.f15918.mo5229().f16426, measuredHeight), this.f110.f15918.mo5229().f16424, Math.max(this.f110.f15918.mo5229().f16427, 0)) : C4384.m9389(c4250.f15918.mo5229().f16425, this.f110.f15918.mo5229().f16426 + measuredHeight, this.f110.f15918.mo5229().f16424, this.f110.f15918.mo5229().f16427);
            C4250 c42502 = this.f110;
            int i3 = Build.VERSION.SDK_INT;
            AbstractC0902 c2228 = i3 >= 36 ? new C2228(c42502) : i3 >= 35 ? new C4510(c42502) : i3 >= 34 ? new C4274(c42502) : i3 >= 31 ? new C1100(c42502) : i3 >= 30 ? new C1084(c42502) : i3 >= 29 ? new C3850(c42502) : new C4285(c42502);
            c2228.mo3024(c4384M9389);
            this.f110 = c2228.mo3027();
        } else {
            boolean z2 = this.f124;
            int i4 = rect2.top;
            if (z2) {
                rect2.top = Math.max(i4, measuredHeight);
                rect2.bottom = Math.max(rect2.bottom, 0);
            } else {
                rect2.top = i4 + measuredHeight;
                rect2.bottom = rect2.bottom;
            }
            this.f110 = this.f110.f15918.mo4445(0, measuredHeight, 0, 0);
        }
        m19(this.f138, rect2.left, rect2.top, rect2.right, rect2.bottom);
        if (!this.f112.equals(this.f110)) {
            C4250 c42503 = this.f110;
            this.f112 = c42503;
            AbstractC2873.m7021(this.f138, c42503);
        }
        measureChildWithMargins(this.f138, i, 0, i2, 0);
        C3094 c30942 = (C3094) this.f138.getLayoutParams();
        int iMax3 = Math.max(iMax, this.f138.getMeasuredWidth() + ((ViewGroup.MarginLayoutParams) c30942).leftMargin + ((ViewGroup.MarginLayoutParams) c30942).rightMargin);
        int iMax4 = Math.max(iMax2, this.f138.getMeasuredHeight() + ((ViewGroup.MarginLayoutParams) c30942).topMargin + ((ViewGroup.MarginLayoutParams) c30942).bottomMargin);
        int iCombineMeasuredStates2 = View.combineMeasuredStates(iCombineMeasuredStates, this.f138.getMeasuredState());
        setMeasuredDimension(View.resolveSizeAndState(Math.max(getPaddingRight() + getPaddingLeft() + iMax3, getSuggestedMinimumWidth()), i, iCombineMeasuredStates2), View.resolveSizeAndState(Math.max(getPaddingBottom() + getPaddingTop() + iMax4, getSuggestedMinimumHeight()), i2, iCombineMeasuredStates2 << 16));
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final boolean onNestedFling(View view, float f, float f2, boolean z) {
        if (!this.f119 || !z) {
            return false;
        }
        this.f115.fling(0, 0, 0, (int) f2, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
        if (this.f115.getFinalY() > this.f137.getHeight()) {
            m22();
            this.f117.run();
        } else {
            m22();
            this.f113.run();
        }
        this.f116 = true;
        return true;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final boolean onNestedPreFling(View view, float f, float f2) {
        return false;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onNestedPreScroll(View view, int i, int i2, int[] iArr) {
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onNestedScroll(View view, int i, int i2, int i3, int i4) {
        int i5 = this.f132 + i2;
        this.f132 = i5;
        setActionBarHideOffset(i5);
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onNestedScrollAccepted(View view, View view2, int i) {
        C3966 c3966;
        C2772 c2772;
        this.f131.f17367 = i;
        this.f132 = getActionBarHideOffset();
        m22();
        InterfaceC0070 interfaceC0070 = this.f122;
        if (interfaceC0070 == null || (c2772 = (c3966 = (C3966) interfaceC0070).f14963) == null) {
            return;
        }
        c2772.m6844();
        c3966.f14963 = null;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final boolean onStartNestedScroll(View view, View view2, int i) {
        if ((i & 2) == 0 || this.f137.getVisibility() != 0) {
            return false;
        }
        return this.f119;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onStopNestedScroll(View view) {
        if (!this.f119 || this.f116) {
            return;
        }
        if (this.f132 <= this.f137.getHeight()) {
            m22();
            postDelayed(this.f113, 600L);
        } else {
            m22();
            postDelayed(this.f117, 600L);
        }
    }

    @Override // android.view.View
    public final void onWindowSystemUiVisibilityChanged(int i) {
        super.onWindowSystemUiVisibilityChanged(i);
        m28();
        int i2 = this.f129 ^ i;
        this.f129 = i;
        boolean z = (i & 4) == 0;
        boolean z2 = (i & 256) != 0;
        InterfaceC0070 interfaceC0070 = this.f122;
        if (interfaceC0070 != null) {
            C3966 c3966 = (C3966) interfaceC0070;
            c3966.f14971 = (z2 || this.f124) ? false : true;
            if (z || !z2) {
                if (c3966.f14956) {
                    c3966.f14956 = false;
                    c3966.m8787(true);
                }
            } else if (!c3966.f14956) {
                c3966.f14956 = true;
                c3966.m8787(true);
            }
        }
        if ((i2 & 256) == 0 || this.f122 == null) {
            return;
        }
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        requestApplyInsets();
    }

    @Override // android.view.View
    public final void onWindowVisibilityChanged(int i) {
        super.onWindowVisibilityChanged(i);
        this.f127 = i;
        InterfaceC0070 interfaceC0070 = this.f122;
        if (interfaceC0070 != null) {
            ((C3966) interfaceC0070).f14969 = i;
        }
    }

    public void setActionBarHideOffset(int i) {
        m22();
        this.f137.setTranslationY(-Math.max(0, Math.min(i, this.f137.getHeight())));
    }

    public void setActionBarVisibilityCallback(InterfaceC0070 interfaceC0070) {
        this.f122 = interfaceC0070;
        if (getWindowToken() != null) {
            ((C3966) this.f122).f14969 = this.f127;
            int i = this.f129;
            if (i != 0) {
                onWindowSystemUiVisibilityChanged(i);
                WeakHashMap weakHashMap = AbstractC2873.f11133;
                requestApplyInsets();
            }
        }
    }

    public void setHasNonEmbeddedTabs(boolean z) {
        this.f123 = z;
    }

    public void setHideOnContentScrollEnabled(boolean z) {
        if (z != this.f119) {
            this.f119 = z;
            if (z) {
                return;
            }
            m22();
            setActionBarHideOffset(0);
        }
    }

    public void setIcon(int i) {
        m28();
        C0062 c0062 = (C0062) this.f128;
        c0062.f1280 = i != 0 ? ᵕˏᵛ.ˑᵥˁ(c0062.f1272.getContext(), i) : null;
        c0062.m1132();
    }

    public void setIcon(Drawable drawable) {
        m28();
        C0062 c0062 = (C0062) this.f128;
        c0062.f1280 = drawable;
        c0062.m1132();
    }

    public void setLogo(int i) {
        m28();
        C0062 c0062 = (C0062) this.f128;
        c0062.f1266 = i != 0 ? ᵕˏᵛ.ˑᵥˁ(c0062.f1272.getContext(), i) : null;
        c0062.m1132();
    }

    public void setOverlayMode(boolean z) {
        this.f109 = z;
    }

    public void setShowingForActionMode(boolean z) {
    }

    public void setUiOptions(int i) {
    }

    public void setWindowCallback(Window.Callback callback) {
        m28();
        ((C0062) this.f128).f1278 = callback;
    }

    public void setWindowTitle(CharSequence charSequence) {
        m28();
        C0062 c0062 = (C0062) this.f128;
        if (c0062.f1268) {
            return;
        }
        Toolbar toolbar = c0062.f1272;
        c0062.f1279 = charSequence;
        if ((c0062.f1276 & 8) != 0) {
            toolbar.setTitle(charSequence);
            if (c0062.f1268) {
                AbstractC2873.m7018(toolbar.getRootView(), charSequence);
            }
        }
    }

    @Override // android.view.ViewGroup
    public final boolean shouldDelayChildPressedState() {
        return false;
    }

    @Override // defpackage.InterfaceC4653
    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final void mo20(View view, View view2, int i, int i2) {
        if (i2 == 0) {
            onNestedScrollAccepted(view, view2, i);
        }
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final void m21(Menu menu, InterfaceC2316 interfaceC2316) {
        m28();
        C0062 c0062 = (C0062) this.f128;
        Toolbar toolbar = c0062.f1272;
        if (c0062.f1274 == null) {
            c0062.f1274 = new C1065(toolbar.getContext());
        }
        C1065 c1065 = c0062.f1274;
        c1065.f4622 = interfaceC2316;
        MenuC2418 menuC2418 = (MenuC2418) menu;
        if (menuC2418 == null && toolbar.f243 == null) {
            return;
        }
        toolbar.m49();
        MenuC2418 menuC24182 = toolbar.f243.f141;
        if (menuC24182 == menuC2418) {
            return;
        }
        if (menuC24182 != null) {
            menuC24182.m6195(toolbar.f213);
            menuC24182.m6195(toolbar.f250);
        }
        if (toolbar.f250 == null) {
            toolbar.f250 = new C4436(toolbar);
        }
        c1065.f4630 = true;
        Context context = toolbar.f225;
        if (menuC2418 != null) {
            menuC2418.m6194(c1065, context);
            menuC2418.m6194(toolbar.f250, toolbar.f225);
        } else {
            c1065.mo3452(context, null);
            toolbar.f250.mo3452(toolbar.f225, null);
            c1065.mo3448();
            toolbar.f250.mo3448();
        }
        toolbar.f243.setPopupTheme(toolbar.f245);
        toolbar.f243.setPresenter(c1065);
        toolbar.f213 = c1065;
        toolbar.m54();
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final void m22() {
        removeCallbacks(this.f113);
        removeCallbacks(this.f117);
        ViewPropertyAnimator viewPropertyAnimator = this.f133;
        if (viewPropertyAnimator != null) {
            viewPropertyAnimator.cancel();
        }
    }

    @Override // defpackage.InterfaceC4653
    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final void mo23(View view, int i) {
        if (i == 0) {
            onStopNestedScroll(view);
        }
    }

    @Override // defpackage.InterfaceC4653
    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void mo24(int i, int i2, int i3, int[] iArr) {
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final void m25(int i) {
        m28();
        if (i == 2) {
            this.f128.getClass();
        } else if (i == 5) {
            this.f128.getClass();
        } else {
            if (i != 109) {
                return;
            }
            setOverlayMode(true);
        }
    }

    @Override // defpackage.InterfaceC4653
    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void mo26(ViewGroup viewGroup, int i, int i2, int i3, int i4, int i5) {
        if (i5 == 0) {
            onNestedScroll(viewGroup, i, i2, i3, i4);
        }
    }

    @Override // defpackage.InterfaceC1648
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void mo27(ViewGroup viewGroup, int i, int i2, int i3, int i4, int i5, int[] iArr) {
        mo26(viewGroup, i, i2, i3, i4, i5);
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final void m28() {
        InterfaceC0105 wrapper;
        if (this.f138 == null) {
            this.f138 = (ContentFrameLayout) findViewById(R.id._11_res_0x7f0b003c);
            this.f137 = (ActionBarContainer) findViewById(R.id._11_res_0x7f0b003d);
            KeyEvent.Callback callbackFindViewById = findViewById(R.id._11_res_0x7f0b003b);
            if (callbackFindViewById instanceof InterfaceC0105) {
                wrapper = (InterfaceC0105) callbackFindViewById;
            } else {
                if (!(callbackFindViewById instanceof Toolbar)) {
                    ᵹˉᵞ.ᵳٴᵶ("Can't make a decor toolbar out of ".concat(callbackFindViewById.getClass().getSimpleName()));
                    return;
                }
                wrapper = ((Toolbar) callbackFindViewById).getWrapper();
            }
            this.f128 = wrapper;
        }
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final void m29(Context context) {
        TypedArray typedArrayObtainStyledAttributes = getContext().getTheme().obtainStyledAttributes(f106);
        this.f130 = typedArrayObtainStyledAttributes.getDimensionPixelSize(0, 0);
        Drawable drawable = typedArrayObtainStyledAttributes.getDrawable(1);
        this.f126 = drawable;
        setWillNotDraw(drawable == null);
        typedArrayObtainStyledAttributes.recycle();
        this.f115 = new OverScroller(context);
    }

    @Override // defpackage.InterfaceC4653
    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final boolean mo30(View view, View view2, int i, int i2) {
        return i2 == 0 && onStartNestedScroll(view, view2, i);
    }
}
