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

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

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

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public TypedValue f86f;
    public final Rect g;
    public a h;

    public interface a {
    }

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

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

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

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

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

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

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

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

    @Override // android.view.ViewGroup, android.view.View
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        a aVar = this.h;
        if (aVar != null) {
            j jVar = ((l) aVar).f253a;
            e0 e0Var = jVar.o;
            if (e0Var != null) {
                e0Var.j();
            }
            if (jVar.t != null) {
                jVar.i.getDecorView().removeCallbacks(jVar.u);
                if (jVar.t.isShowing()) {
                    try {
                        jVar.t.dismiss();
                    } catch (IllegalArgumentException unused) {
                    }
                }
                jVar.t = null;
            }
            jVar.I();
            g gVar = jVar.N(0).h;
            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.h = aVar;
    }
}
