139 lines
4.2 KiB
Java
139 lines
4.2 KiB
Java
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.core.view.ViewCompat;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ContentFrameLayout extends FrameLayout {
|
|
private TypedValue a;
|
|
private TypedValue b;
|
|
private TypedValue c;
|
|
private TypedValue d;
|
|
private TypedValue e;
|
|
private TypedValue f;
|
|
private final Rect g;
|
|
private OnAttachListener h;
|
|
|
|
public interface OnAttachListener {
|
|
void a();
|
|
|
|
void onDetachedFromWindow();
|
|
}
|
|
|
|
public ContentFrameLayout(Context context) {
|
|
this(context, null);
|
|
}
|
|
|
|
public void a(Rect rect) {
|
|
fitSystemWindows(rect);
|
|
}
|
|
|
|
public TypedValue getFixedHeightMajor() {
|
|
if (this.e == null) {
|
|
this.e = new TypedValue();
|
|
}
|
|
return this.e;
|
|
}
|
|
|
|
public TypedValue getFixedHeightMinor() {
|
|
if (this.f == null) {
|
|
this.f = new TypedValue();
|
|
}
|
|
return this.f;
|
|
}
|
|
|
|
public TypedValue getFixedWidthMajor() {
|
|
if (this.c == null) {
|
|
this.c = new TypedValue();
|
|
}
|
|
return this.c;
|
|
}
|
|
|
|
public TypedValue getFixedWidthMinor() {
|
|
if (this.d == null) {
|
|
this.d = new TypedValue();
|
|
}
|
|
return this.d;
|
|
}
|
|
|
|
public TypedValue getMinWidthMajor() {
|
|
if (this.a == null) {
|
|
this.a = new TypedValue();
|
|
}
|
|
return this.a;
|
|
}
|
|
|
|
public TypedValue getMinWidthMinor() {
|
|
if (this.b == null) {
|
|
this.b = new TypedValue();
|
|
}
|
|
return this.b;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void onAttachedToWindow() {
|
|
super.onAttachedToWindow();
|
|
OnAttachListener onAttachListener = this.h;
|
|
if (onAttachListener != null) {
|
|
onAttachListener.a();
|
|
}
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void onDetachedFromWindow() {
|
|
super.onDetachedFromWindow();
|
|
OnAttachListener onAttachListener = this.h;
|
|
if (onAttachListener != null) {
|
|
onAttachListener.onDetachedFromWindow();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x004a */
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x0065 */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0088 */
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x00ad */
|
|
/* JADX WARN: Removed duplicated region for block: B:40:0x00ba */
|
|
/* JADX WARN: Removed duplicated region for block: B:43:0x00ce */
|
|
/* JADX WARN: Removed duplicated region for block: B:45:0x00d8 */
|
|
/* JADX WARN: Removed duplicated region for block: B:47:0x00e0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:50:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:51:0x00c0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:54:0x00b0 */
|
|
@Override // android.widget.FrameLayout, android.view.View
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
protected void onMeasure(int r14, int r15) {
|
|
/*
|
|
Method dump skipped, instructions count: 228
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.ContentFrameLayout.onMeasure(int, int):void");
|
|
}
|
|
|
|
public void setAttachListener(OnAttachListener onAttachListener) {
|
|
this.h = onAttachListener;
|
|
}
|
|
|
|
public ContentFrameLayout(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, 0);
|
|
}
|
|
|
|
public void a(int i, int i2, int i3, int i4) {
|
|
this.g.set(i, i2, i3, i4);
|
|
if (ViewCompat.x(this)) {
|
|
requestLayout();
|
|
}
|
|
}
|
|
|
|
public ContentFrameLayout(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
this.g = new Rect();
|
|
}
|
|
}
|