package androidx.appcompat.widget;

import android.R;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.SuppressLint;
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.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 androidx.appcompat.view.menu.m;
import androidx.core.view.j0;
import com.android.org.conscrypt.PSKKeyManager;

/* JADX INFO: loaded from: classes.dex */
@SuppressLint({"UnknownNullness"})
public class ActionBarOverlayLayout extends ViewGroup implements g0, androidx.core.view.q, androidx.core.view.o, androidx.core.view.p {
    static final int[] J = {c.a.f3151b, R.attr.windowContentOverlay};
    private androidx.core.view.j0 A;
    private androidx.core.view.j0 B;
    private d C;
    private OverScroller D;
    ViewPropertyAnimator E;
    final AnimatorListenerAdapter F;
    private final Runnable G;
    private final Runnable H;
    private final androidx.core.view.r I;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private int f622e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private int f623f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private ContentFrameLayout f624g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    ActionBarContainer f625h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private h0 f626i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private Drawable f627j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private boolean f628k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    private boolean f629l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    private boolean f630m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    private boolean f631n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    boolean f632o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    private int f633p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    private int f634q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    private final Rect f635r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    private final Rect f636s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    private final Rect f637t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    private final Rect f638u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    private final Rect f639v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    private final Rect f640w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    private final Rect f641x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    private androidx.core.view.j0 f642y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    private androidx.core.view.j0 f643z;

    class a extends AnimatorListenerAdapter {
        a() {
        }

        @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
        public void onAnimationCancel(Animator animator) {
            ActionBarOverlayLayout actionBarOverlayLayout = ActionBarOverlayLayout.this;
            actionBarOverlayLayout.E = null;
            actionBarOverlayLayout.f632o = false;
        }

        @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
        public void onAnimationEnd(Animator animator) {
            ActionBarOverlayLayout actionBarOverlayLayout = ActionBarOverlayLayout.this;
            actionBarOverlayLayout.E = null;
            actionBarOverlayLayout.f632o = false;
        }
    }

    class b implements Runnable {
        b() {
        }

        @Override // java.lang.Runnable
        public void run() {
            ActionBarOverlayLayout.this.u();
            ActionBarOverlayLayout actionBarOverlayLayout = ActionBarOverlayLayout.this;
            actionBarOverlayLayout.E = actionBarOverlayLayout.f625h.animate().translationY(0.0f).setListener(ActionBarOverlayLayout.this.F);
        }
    }

    class c implements Runnable {
        c() {
        }

        @Override // java.lang.Runnable
        public void run() {
            ActionBarOverlayLayout.this.u();
            ActionBarOverlayLayout actionBarOverlayLayout = ActionBarOverlayLayout.this;
            actionBarOverlayLayout.E = actionBarOverlayLayout.f625h.animate().translationY(-ActionBarOverlayLayout.this.f625h.getHeight()).setListener(ActionBarOverlayLayout.this.F);
        }
    }

    public interface d {
        void a(boolean z2);

        void b();

        void c();

        void d(int i3);

        void e();

        void f();
    }

    public static class e extends ViewGroup.MarginLayoutParams {
        public e(Context context, AttributeSet attributeSet) {
            super(context, attributeSet);
        }

        public e(int i3, int i4) {
            super(i3, i4);
        }

        public e(ViewGroup.LayoutParams layoutParams) {
            super(layoutParams);
        }
    }

    public ActionBarOverlayLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.f623f = 0;
        this.f635r = new Rect();
        this.f636s = new Rect();
        this.f637t = new Rect();
        this.f638u = new Rect();
        this.f639v = new Rect();
        this.f640w = new Rect();
        this.f641x = new Rect();
        androidx.core.view.j0 j0Var = androidx.core.view.j0.f1900b;
        this.f642y = j0Var;
        this.f643z = j0Var;
        this.A = j0Var;
        this.B = j0Var;
        this.F = new a();
        this.G = new b();
        this.H = new c();
        v(context);
        this.I = new androidx.core.view.r(this);
    }

    private void A() {
        u();
        this.G.run();
    }

    private boolean B(float f3) {
        this.D.fling(0, 0, 0, (int) f3, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
        return this.D.getFinalY() > this.f625h.getHeight();
    }

    private void p() {
        u();
        this.H.run();
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private boolean q(android.view.View r2, android.graphics.Rect r3, boolean r4, boolean r5, boolean r6, boolean r7) {
        /*
            r1 = this;
            android.view.ViewGroup$LayoutParams r1 = r2.getLayoutParams()
            androidx.appcompat.widget.ActionBarOverlayLayout$e r1 = (androidx.appcompat.widget.ActionBarOverlayLayout.e) r1
            r2 = 1
            if (r4 == 0) goto L13
            int r4 = r1.leftMargin
            int r0 = r3.left
            if (r4 == r0) goto L13
            r1.leftMargin = r0
            r4 = r2
            goto L14
        L13:
            r4 = 0
        L14:
            if (r5 == 0) goto L1f
            int r5 = r1.topMargin
            int r0 = r3.top
            if (r5 == r0) goto L1f
            r1.topMargin = r0
            r4 = r2
        L1f:
            if (r7 == 0) goto L2a
            int r5 = r1.rightMargin
            int r7 = r3.right
            if (r5 == r7) goto L2a
            r1.rightMargin = r7
            r4 = r2
        L2a:
            if (r6 == 0) goto L35
            int r5 = r1.bottomMargin
            int r3 = r3.bottom
            if (r5 == r3) goto L35
            r1.bottomMargin = r3
            goto L36
        L35:
            r2 = r4
        L36:
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.ActionBarOverlayLayout.q(android.view.View, android.graphics.Rect, boolean, boolean, boolean, boolean):boolean");
    }

    /* JADX WARN: Multi-variable type inference failed */
    private h0 t(View view) {
        if (view instanceof h0) {
            return (h0) view;
        }
        if (view instanceof Toolbar) {
            return ((Toolbar) view).getWrapper();
        }
        throw new IllegalStateException("Can't make a decor toolbar out of " + view.getClass().getSimpleName());
    }

    private void v(Context context) {
        TypedArray typedArrayObtainStyledAttributes = getContext().getTheme().obtainStyledAttributes(J);
        this.f622e = typedArrayObtainStyledAttributes.getDimensionPixelSize(0, 0);
        Drawable drawable = typedArrayObtainStyledAttributes.getDrawable(1);
        this.f627j = drawable;
        setWillNotDraw(drawable == null);
        typedArrayObtainStyledAttributes.recycle();
        this.f628k = context.getApplicationInfo().targetSdkVersion < 19;
        this.D = new OverScroller(context);
    }

    private void x() {
        u();
        postDelayed(this.H, 600L);
    }

    private void y() {
        u();
        postDelayed(this.G, 600L);
    }

    @Override // androidx.appcompat.widget.g0
    public void a(Menu menu, m.a aVar) {
        z();
        this.f626i.a(menu, aVar);
    }

    @Override // androidx.appcompat.widget.g0
    public boolean b() {
        z();
        return this.f626i.b();
    }

    @Override // androidx.appcompat.widget.g0
    public boolean c() {
        z();
        return this.f626i.c();
    }

    @Override // android.view.ViewGroup
    protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return layoutParams instanceof e;
    }

    @Override // androidx.core.view.o
    public void d(View view, View view2, int i3, int i4) {
        if (i4 == 0) {
            onNestedScrollAccepted(view, view2, i3);
        }
    }

    @Override // android.view.View
    public void draw(Canvas canvas) {
        super.draw(canvas);
        if (this.f627j == null || this.f628k) {
            return;
        }
        int bottom = this.f625h.getVisibility() == 0 ? (int) (this.f625h.getBottom() + this.f625h.getTranslationY() + 0.5f) : 0;
        this.f627j.setBounds(0, bottom, getWidth(), this.f627j.getIntrinsicHeight() + bottom);
        this.f627j.draw(canvas);
    }

    @Override // androidx.appcompat.widget.g0
    public boolean e() {
        z();
        return this.f626i.e();
    }

    @Override // androidx.appcompat.widget.g0
    public boolean f() {
        z();
        return this.f626i.f();
    }

    @Override // android.view.View
    protected boolean fitSystemWindows(Rect rect) {
        if (Build.VERSION.SDK_INT >= 21) {
            return super.fitSystemWindows(rect);
        }
        z();
        boolean zQ = q(this.f625h, rect, true, true, false, true);
        this.f638u.set(rect);
        j1.a(this, this.f638u, this.f635r);
        if (!this.f639v.equals(this.f638u)) {
            this.f639v.set(this.f638u);
            zQ = true;
        }
        if (!this.f636s.equals(this.f635r)) {
            this.f636s.set(this.f635r);
            zQ = true;
        }
        if (zQ) {
            requestLayout();
        }
        return true;
    }

    @Override // androidx.appcompat.widget.g0
    public void g() {
        z();
        this.f626i.g();
    }

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

    @Override // android.view.ViewGroup
    public int getNestedScrollAxes() {
        return this.I.a();
    }

    public CharSequence getTitle() {
        z();
        return this.f626i.getTitle();
    }

    @Override // androidx.appcompat.widget.g0
    public boolean h() {
        z();
        return this.f626i.h();
    }

    @Override // androidx.core.view.o
    public void i(View view, int i3) {
        if (i3 == 0) {
            onStopNestedScroll(view);
        }
    }

    @Override // androidx.core.view.o
    public void j(View view, int i3, int i4, int[] iArr, int i5) {
        if (i5 == 0) {
            onNestedPreScroll(view, i3, i4, iArr);
        }
    }

    @Override // androidx.appcompat.widget.g0
    public void k(int i3) {
        z();
        if (i3 == 2) {
            this.f626i.q();
        } else if (i3 == 5) {
            this.f626i.s();
        } else {
            if (i3 != 109) {
                return;
            }
            setOverlayMode(true);
        }
    }

    @Override // androidx.appcompat.widget.g0
    public void l() {
        z();
        this.f626i.i();
    }

    @Override // androidx.core.view.p
    public void m(View view, int i3, int i4, int i5, int i6, int i7, int[] iArr) {
        n(view, i3, i4, i5, i6, i7);
    }

    @Override // androidx.core.view.o
    public void n(View view, int i3, int i4, int i5, int i6, int i7) {
        if (i7 == 0) {
            onNestedScroll(view, i3, i4, i5, i6);
        }
    }

    @Override // androidx.core.view.o
    public boolean o(View view, View view2, int i3, int i4) {
        return i4 == 0 && onStartNestedScroll(view, view2, i3);
    }

    @Override // android.view.View
    public WindowInsets onApplyWindowInsets(WindowInsets windowInsets) {
        z();
        androidx.core.view.j0 j0VarV = androidx.core.view.j0.v(windowInsets, this);
        boolean zQ = q(this.f625h, new Rect(j0VarV.i(), j0VarV.k(), j0VarV.j(), j0VarV.h()), true, true, false, true);
        androidx.core.view.y.h(this, j0VarV, this.f635r);
        Rect rect = this.f635r;
        androidx.core.view.j0 j0VarL = j0VarV.l(rect.left, rect.top, rect.right, rect.bottom);
        this.f642y = j0VarL;
        boolean z2 = true;
        if (!this.f643z.equals(j0VarL)) {
            this.f643z = this.f642y;
            zQ = true;
        }
        if (this.f636s.equals(this.f635r)) {
            z2 = zQ;
        } else {
            this.f636s.set(this.f635r);
        }
        if (z2) {
            requestLayout();
        }
        return j0VarV.a().c().b().t();
    }

    @Override // android.view.View
    protected void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        v(getContext());
        androidx.core.view.y.o0(this);
    }

    @Override // android.view.ViewGroup, android.view.View
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        u();
    }

    @Override // android.view.ViewGroup, android.view.View
    protected void onLayout(boolean z2, int i3, int i4, int i5, int i6) {
        int childCount = getChildCount();
        int paddingLeft = getPaddingLeft();
        int paddingTop = getPaddingTop();
        for (int i7 = 0; i7 < childCount; i7++) {
            View childAt = getChildAt(i7);
            if (childAt.getVisibility() != 8) {
                e eVar = (e) childAt.getLayoutParams();
                int measuredWidth = childAt.getMeasuredWidth();
                int measuredHeight = childAt.getMeasuredHeight();
                int i8 = ((ViewGroup.MarginLayoutParams) eVar).leftMargin + paddingLeft;
                int i9 = ((ViewGroup.MarginLayoutParams) eVar).topMargin + paddingTop;
                childAt.layout(i8, i9, measuredWidth + i8, measuredHeight + i9);
            }
        }
    }

    @Override // android.view.View
    protected void onMeasure(int i3, int i4) {
        int measuredHeight;
        z();
        measureChildWithMargins(this.f625h, i3, 0, i4, 0);
        e eVar = (e) this.f625h.getLayoutParams();
        int iMax = Math.max(0, this.f625h.getMeasuredWidth() + ((ViewGroup.MarginLayoutParams) eVar).leftMargin + ((ViewGroup.MarginLayoutParams) eVar).rightMargin);
        int iMax2 = Math.max(0, this.f625h.getMeasuredHeight() + ((ViewGroup.MarginLayoutParams) eVar).topMargin + ((ViewGroup.MarginLayoutParams) eVar).bottomMargin);
        int iCombineMeasuredStates = View.combineMeasuredStates(0, this.f625h.getMeasuredState());
        boolean z2 = (androidx.core.view.y.N(this) & PSKKeyManager.MAX_KEY_LENGTH_BYTES) != 0;
        if (z2) {
            measuredHeight = this.f622e;
            if (this.f630m && this.f625h.getTabContainer() != null) {
                measuredHeight += this.f622e;
            }
        } else {
            measuredHeight = this.f625h.getVisibility() != 8 ? this.f625h.getMeasuredHeight() : 0;
        }
        this.f637t.set(this.f635r);
        int i5 = Build.VERSION.SDK_INT;
        if (i5 >= 21) {
            this.A = this.f642y;
        } else {
            this.f640w.set(this.f638u);
        }
        if (!this.f629l && !z2) {
            Rect rect = this.f637t;
            rect.top += measuredHeight;
            rect.bottom += 0;
            if (i5 >= 21) {
                this.A = this.A.l(0, measuredHeight, 0, 0);
            }
        } else if (i5 >= 21) {
            this.A = new j0.b(this.A).c(androidx.core.graphics.b.b(this.A.i(), this.A.k() + measuredHeight, this.A.j(), this.A.h() + 0)).a();
        } else {
            Rect rect2 = this.f640w;
            rect2.top += measuredHeight;
            rect2.bottom += 0;
        }
        q(this.f624g, this.f637t, true, true, true, true);
        if (i5 >= 21 && !this.B.equals(this.A)) {
            androidx.core.view.j0 j0Var = this.A;
            this.B = j0Var;
            androidx.core.view.y.i(this.f624g, j0Var);
        } else if (i5 < 21 && !this.f641x.equals(this.f640w)) {
            this.f641x.set(this.f640w);
            this.f624g.a(this.f640w);
        }
        measureChildWithMargins(this.f624g, i3, 0, i4, 0);
        e eVar2 = (e) this.f624g.getLayoutParams();
        int iMax3 = Math.max(iMax, this.f624g.getMeasuredWidth() + ((ViewGroup.MarginLayoutParams) eVar2).leftMargin + ((ViewGroup.MarginLayoutParams) eVar2).rightMargin);
        int iMax4 = Math.max(iMax2, this.f624g.getMeasuredHeight() + ((ViewGroup.MarginLayoutParams) eVar2).topMargin + ((ViewGroup.MarginLayoutParams) eVar2).bottomMargin);
        int iCombineMeasuredStates2 = View.combineMeasuredStates(iCombineMeasuredStates, this.f624g.getMeasuredState());
        setMeasuredDimension(View.resolveSizeAndState(Math.max(iMax3 + getPaddingLeft() + getPaddingRight(), getSuggestedMinimumWidth()), i3, iCombineMeasuredStates2), View.resolveSizeAndState(Math.max(iMax4 + getPaddingTop() + getPaddingBottom(), getSuggestedMinimumHeight()), i4, iCombineMeasuredStates2 << 16));
    }

    @Override // android.view.ViewGroup, android.view.ViewParent, androidx.core.view.q
    public boolean onNestedFling(View view, float f3, float f4, boolean z2) {
        if (!this.f631n || !z2) {
            return false;
        }
        if (B(f4)) {
            p();
        } else {
            A();
        }
        this.f632o = true;
        return true;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent, androidx.core.view.q
    public boolean onNestedPreFling(View view, float f3, float f4) {
        return false;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent, androidx.core.view.q
    public void onNestedPreScroll(View view, int i3, int i4, int[] iArr) {
    }

    @Override // android.view.ViewGroup, android.view.ViewParent, androidx.core.view.q
    public void onNestedScroll(View view, int i3, int i4, int i5, int i6) {
        int i7 = this.f633p + i4;
        this.f633p = i7;
        setActionBarHideOffset(i7);
    }

    @Override // android.view.ViewGroup, android.view.ViewParent, androidx.core.view.q
    public void onNestedScrollAccepted(View view, View view2, int i3) {
        this.I.b(view, view2, i3);
        this.f633p = getActionBarHideOffset();
        u();
        d dVar = this.C;
        if (dVar != null) {
            dVar.c();
        }
    }

    @Override // android.view.ViewGroup, android.view.ViewParent, androidx.core.view.q
    public boolean onStartNestedScroll(View view, View view2, int i3) {
        if ((i3 & 2) == 0 || this.f625h.getVisibility() != 0) {
            return false;
        }
        return this.f631n;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent, androidx.core.view.q
    public void onStopNestedScroll(View view) {
        if (this.f631n && !this.f632o) {
            if (this.f633p <= this.f625h.getHeight()) {
                y();
            } else {
                x();
            }
        }
        d dVar = this.C;
        if (dVar != null) {
            dVar.f();
        }
    }

    @Override // android.view.View
    @Deprecated
    public void onWindowSystemUiVisibilityChanged(int i3) {
        if (Build.VERSION.SDK_INT >= 16) {
            super.onWindowSystemUiVisibilityChanged(i3);
        }
        z();
        int i4 = this.f634q ^ i3;
        this.f634q = i3;
        boolean z2 = (i3 & 4) == 0;
        boolean z3 = (i3 & PSKKeyManager.MAX_KEY_LENGTH_BYTES) != 0;
        d dVar = this.C;
        if (dVar != null) {
            dVar.a(!z3);
            if (z2 || !z3) {
                this.C.b();
            } else {
                this.C.e();
            }
        }
        if ((i4 & PSKKeyManager.MAX_KEY_LENGTH_BYTES) == 0 || this.C == null) {
            return;
        }
        androidx.core.view.y.o0(this);
    }

    @Override // android.view.View
    protected void onWindowVisibilityChanged(int i3) {
        super.onWindowVisibilityChanged(i3);
        this.f623f = i3;
        d dVar = this.C;
        if (dVar != null) {
            dVar.d(i3);
        }
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // android.view.ViewGroup
    /* JADX INFO: renamed from: r, reason: merged with bridge method [inline-methods] */
    public e generateDefaultLayoutParams() {
        return new e(-1, -1);
    }

    @Override // android.view.ViewGroup
    /* JADX INFO: renamed from: s, reason: merged with bridge method [inline-methods] */
    public e generateLayoutParams(AttributeSet attributeSet) {
        return new e(getContext(), attributeSet);
    }

    public void setActionBarHideOffset(int i3) {
        u();
        this.f625h.setTranslationY(-Math.max(0, Math.min(i3, this.f625h.getHeight())));
    }

    public void setActionBarVisibilityCallback(d dVar) {
        this.C = dVar;
        if (getWindowToken() != null) {
            this.C.d(this.f623f);
            int i3 = this.f634q;
            if (i3 != 0) {
                onWindowSystemUiVisibilityChanged(i3);
                androidx.core.view.y.o0(this);
            }
        }
    }

    public void setHasNonEmbeddedTabs(boolean z2) {
        this.f630m = z2;
    }

    public void setHideOnContentScrollEnabled(boolean z2) {
        if (z2 != this.f631n) {
            this.f631n = z2;
            if (z2) {
                return;
            }
            u();
            setActionBarHideOffset(0);
        }
    }

    public void setIcon(int i3) {
        z();
        this.f626i.setIcon(i3);
    }

    public void setLogo(int i3) {
        z();
        this.f626i.l(i3);
    }

    public void setOverlayMode(boolean z2) {
        this.f629l = z2;
        this.f628k = z2 && getContext().getApplicationInfo().targetSdkVersion < 19;
    }

    public void setShowingForActionMode(boolean z2) {
    }

    public void setUiOptions(int i3) {
    }

    @Override // androidx.appcompat.widget.g0
    public void setWindowCallback(Window.Callback callback) {
        z();
        this.f626i.setWindowCallback(callback);
    }

    @Override // androidx.appcompat.widget.g0
    public void setWindowTitle(CharSequence charSequence) {
        z();
        this.f626i.setWindowTitle(charSequence);
    }

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

    void u() {
        removeCallbacks(this.G);
        removeCallbacks(this.H);
        ViewPropertyAnimator viewPropertyAnimator = this.E;
        if (viewPropertyAnimator != null) {
            viewPropertyAnimator.cancel();
        }
    }

    public boolean w() {
        return this.f629l;
    }

    void z() {
        if (this.f624g == null) {
            this.f624g = (ContentFrameLayout) findViewById(c.f.f3227b);
            this.f625h = (ActionBarContainer) findViewById(c.f.f3228c);
            this.f626i = t(findViewById(c.f.f3226a));
        }
    }

    @Override // android.view.ViewGroup
    protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new e(layoutParams);
    }

    public void setIcon(Drawable drawable) {
        z();
        this.f626i.setIcon(drawable);
    }
}
