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 d.b.c.i;
import d.b.c.k;
import d.b.f.i.g;
import d.b.g.e0;
import java.util.Objects;

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

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

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

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

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

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

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

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

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

    public interface a {
    }

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

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

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

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

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

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

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

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

    @Override // android.view.ViewGroup, android.view.View
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        a aVar = this.f511s;
        if (aVar != null) {
            i iVar = ((k) aVar).a;
            e0 e0Var = iVar.f1577z;
            if (e0Var != null) {
                e0Var.i();
            }
            if (iVar.E != null) {
                iVar.f1571t.getDecorView().removeCallbacks(iVar.F);
                if (iVar.E.isShowing()) {
                    try {
                        iVar.E.dismiss();
                    } catch (IllegalArgumentException unused) {
                    }
                }
                iVar.E = null;
            }
            iVar.L();
            g gVar = iVar.Q(0).f1594h;
            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.f511s = aVar;
    }
}
