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 androidx.appcompat.app.AppCompatDelegateImpl;
import c.b.c.n;
import c.b.e.i.g;
import c.b.f.i0;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public class ContentFrameLayout extends FrameLayout {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public TypedValue f171b;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public TypedValue f172e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public TypedValue f173f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public TypedValue f174g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public TypedValue f175h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public TypedValue f176i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final Rect f177j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public a f178k;

    public interface a {
    }

    public ContentFrameLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, 0);
        this.f177j = new Rect();
    }

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

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

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

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

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

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

    @Override // android.view.ViewGroup, android.view.View
    public void onAttachedToWindow() {
        super.onAttachedToWindow();
        a aVar = this.f178k;
        if (aVar != null) {
            Objects.requireNonNull((n) aVar);
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        a aVar = this.f178k;
        if (aVar != null) {
            AppCompatDelegateImpl appCompatDelegateImpl = ((n) aVar).a;
            i0 i0Var = appCompatDelegateImpl.y;
            if (i0Var != null) {
                i0Var.j();
            }
            if (appCompatDelegateImpl.D != null) {
                appCompatDelegateImpl.s.getDecorView().removeCallbacks(appCompatDelegateImpl.E);
                if (appCompatDelegateImpl.D.isShowing()) {
                    try {
                        appCompatDelegateImpl.D.dismiss();
                    } catch (IllegalArgumentException unused) {
                    }
                }
                appCompatDelegateImpl.D = null;
            }
            appCompatDelegateImpl.N();
            g gVar = appCompatDelegateImpl.S(0).f76h;
            if (gVar != null) {
                gVar.c(true);
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x004a  */
    /* JADX WARN: Removed duplicated region for block: B:22:0x0060  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0086  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x00cc  */
    /* JADX WARN: Removed duplicated region for block: B:56:0x00d6  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x00db  */
    @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 void onMeasure(int r14, int r15) {
        /*
            Method dump skipped, instruction units count: 226
            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(a aVar) {
        this.f178k = aVar;
    }
}
