package androidx.appcompat.widget;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.FrameLayout;
import defpackage.C0062;
import defpackage.C1014;
import defpackage.C1065;
import defpackage.C5153;
import defpackage.InterfaceC3047;
import defpackage.LayoutInflaterFactory2C4211;
import defpackage.MenuC2418;

/* loaded from: classes3.dex */
public class ContentFrameLayout extends FrameLayout {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final Rect f157;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public InterfaceC3047 f158;

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

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

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

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

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public TypedValue f163;

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

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

    public ContentFrameLayout(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 0);
    }

    public ContentFrameLayout(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.f157 = new Rect();
    }

    public TypedValue getFixedHeightMajor() {
        if (this.f161 == null) {
            this.f161 = new TypedValue();
        }
        return this.f161;
    }

    public TypedValue getFixedHeightMinor() {
        if (this.f159 == null) {
            this.f159 = new TypedValue();
        }
        return this.f159;
    }

    public TypedValue getFixedWidthMajor() {
        if (this.f164 == null) {
            this.f164 = new TypedValue();
        }
        return this.f164;
    }

    public TypedValue getFixedWidthMinor() {
        if (this.f163 == null) {
            this.f163 = new TypedValue();
        }
        return this.f163;
    }

    public TypedValue getMinWidthMajor() {
        if (this.f162 == null) {
            this.f162 = new TypedValue();
        }
        return this.f162;
    }

    public TypedValue getMinWidthMinor() {
        if (this.f160 == null) {
            this.f160 = new TypedValue();
        }
        return this.f160;
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onAttachedToWindow() {
        super.onAttachedToWindow();
        InterfaceC3047 interfaceC3047 = this.f158;
        if (interfaceC3047 != null) {
            interfaceC3047.getClass();
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        C1065 c1065;
        super.onDetachedFromWindow();
        ˊᵘʛ r2 = this.f158;
        if (r2 != null) {
            LayoutInflaterFactory2C4211 layoutInflaterFactory2C4211 = (LayoutInflaterFactory2C4211) r2.ᵢˇᵭ;
            ActionBarOverlayLayout actionBarOverlayLayout = layoutInflaterFactory2C4211.f15793;
            if (actionBarOverlayLayout != null) {
                actionBarOverlayLayout.m28();
                ActionMenuView actionMenuView = ((C0062) actionBarOverlayLayout.f128).f1272.f243;
                if (actionMenuView != null && (c1065 = actionMenuView.f145) != null) {
                    c1065.m3446();
                    C5153 c5153 = c1065.f4614;
                    if (c5153 != null && c5153.m8477()) {
                        c5153.f14259.dismiss();
                    }
                }
            }
            if (layoutInflaterFactory2C4211.f15750 != null) {
                layoutInflaterFactory2C4211.f15775.getDecorView().removeCallbacks(layoutInflaterFactory2C4211.f15753);
                if (layoutInflaterFactory2C4211.f15750.isShowing()) {
                    try {
                        layoutInflaterFactory2C4211.f15750.dismiss();
                    } catch (IllegalArgumentException unused) {
                    }
                }
                layoutInflaterFactory2C4211.f15750 = null;
            }
            C1014 c1014 = layoutInflaterFactory2C4211.f15766;
            if (c1014 != null) {
                c1014.m3381();
            }
            MenuC2418 menuC2418 = layoutInflaterFactory2C4211.m9167(0).f4474;
            if (menuC2418 != null) {
                menuC2418.m6185(true);
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x004e  */
    /* JADX WARN: Removed duplicated region for block: B:22:0x0062  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x008a  */
    /* JADX WARN: Removed duplicated region for block: B:38:0x009d  */
    /* JADX WARN: Removed duplicated region for block: B:55:0x00d1  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x00d9  */
    /* JADX WARN: Removed duplicated region for block: B:58:0x00de  */
    @Override // android.widget.FrameLayout, android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void onMeasure(int r17, int r18) {
        /*
            Method dump skipped, instructions count: 229
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.ContentFrameLayout.onMeasure(int, int):void");
    }

    public void setAttachListener(InterfaceC3047 interfaceC3047) {
        this.f158 = interfaceC3047;
    }
}
