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 c.b.c.d;
import c.b.c.e;
import c.b.f.d.f;
import c.b.g.r;
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 f4602b;

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

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

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

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

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

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

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

    public interface a {
    }

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

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

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

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

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

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

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

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

    @Override // android.view.ViewGroup, android.view.View
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        a aVar = this.f4609i;
        if (aVar != null) {
            e eVar = ((d) aVar).f4747a;
            r rVar = eVar.f4749c;
            if (rVar != null) {
                rVar.d();
            }
            if (eVar.f4750d != null) {
                eVar.f4748b.getDecorView().removeCallbacks(eVar.f4751e);
                if (eVar.f4750d.isShowing()) {
                    try {
                        eVar.f4750d.dismiss();
                    } catch (IllegalArgumentException unused) {
                    }
                }
                eVar.f4750d = null;
            }
            eVar.c();
            f fVar = eVar.d(0).f4752a;
            if (fVar != null) {
                fVar.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.f4609i = aVar;
    }
}
