mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
30 lines
1.7 KiB
Java
30 lines
1.7 KiB
Java
package androidx.window.layout;
|
|
|
|
import android.app.Activity;
|
|
import android.graphics.Rect;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: ActivityCompatHelper.kt */
|
|
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÁ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\b"}, d2 = {"Landroidx/window/layout/ActivityCompatHelperApi30;", "", "()V", "currentWindowBounds", "Landroid/graphics/Rect;", "activity", "Landroid/app/Activity;", "maximumWindowBounds", "window_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
|
|
/* loaded from: classes2.dex */
|
|
public final class ActivityCompatHelperApi30 {
|
|
public static final ActivityCompatHelperApi30 INSTANCE = new ActivityCompatHelperApi30();
|
|
|
|
private ActivityCompatHelperApi30() {
|
|
}
|
|
|
|
public final Rect currentWindowBounds(Activity activity) {
|
|
Intrinsics.checkNotNullParameter(activity, "activity");
|
|
Rect bounds = activity.getWindowManager().getCurrentWindowMetrics().getBounds();
|
|
Intrinsics.checkNotNullExpressionValue(bounds, "activity.windowManager.currentWindowMetrics.bounds");
|
|
return bounds;
|
|
}
|
|
|
|
public final Rect maximumWindowBounds(Activity activity) {
|
|
Intrinsics.checkNotNullParameter(activity, "activity");
|
|
Rect bounds = activity.getWindowManager().getMaximumWindowMetrics().getBounds();
|
|
Intrinsics.checkNotNullExpressionValue(bounds, "activity.windowManager.maximumWindowMetrics.bounds");
|
|
return bounds;
|
|
}
|
|
}
|