mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
34 lines
1.2 KiB
Java
34 lines
1.2 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Rect;
|
|
import android.util.AttributeSet;
|
|
import android.widget.FrameLayout;
|
|
import androidx.appcompat.widget.FitWindowsViewGroup;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class FitWindowsFrameLayout extends FrameLayout implements FitWindowsViewGroup {
|
|
private FitWindowsViewGroup.OnFitSystemWindowsListener mListener;
|
|
|
|
@Override // androidx.appcompat.widget.FitWindowsViewGroup
|
|
public void setOnFitSystemWindowsListener(FitWindowsViewGroup.OnFitSystemWindowsListener onFitSystemWindowsListener) {
|
|
this.mListener = onFitSystemWindowsListener;
|
|
}
|
|
|
|
public FitWindowsFrameLayout(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public FitWindowsFrameLayout(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
protected boolean fitSystemWindows(Rect rect) {
|
|
FitWindowsViewGroup.OnFitSystemWindowsListener onFitSystemWindowsListener = this.mListener;
|
|
if (onFitSystemWindowsListener != null) {
|
|
onFitSystemWindowsListener.onFitSystemWindows(rect);
|
|
}
|
|
return super.fitSystemWindows(rect);
|
|
}
|
|
}
|