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.a.c.d;
import c.a.c.e;
import c.a.f.d.f;
import c.a.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 f4652b;

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

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

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

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

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

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

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

    public interface a {
    }

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

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

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

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

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

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

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

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

    @Override // android.view.ViewGroup, android.view.View
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        a aVar = this.f4659i;
        if (aVar != null) {
            e eVar = ((d) aVar).f4761a;
            r rVar = eVar.f4763c;
            if (rVar != null) {
                rVar.d();
            }
            if (eVar.f4764d != null) {
                eVar.f4762b.getDecorView().removeCallbacks(eVar.f4765e);
                if (eVar.f4764d.isShowing()) {
                    try {
                        eVar.f4764d.dismiss();
                    } catch (IllegalArgumentException unused) {
                    }
                }
                eVar.f4764d = null;
            }
            eVar.c();
            f fVar = eVar.d(0).f4766a;
            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.f4659i = aVar;
    }
}
