package f4;

import android.content.Context;
import android.view.WindowInsets;
import android.view.WindowManager;
import androidx.annotation.DoNotInline;
import androidx.core.view.f3;
import nb.g;
import org.jetbrains.annotations.NotNull;

/* JADX INFO: loaded from: classes.dex */
public final class a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final a f25942a = new a();

    @DoNotInline
    @NotNull
    public final f3 a(@NotNull Context context) {
        g.i(context, "context");
        WindowInsets windowInsets = ((WindowManager) context.getSystemService(WindowManager.class)).getCurrentWindowMetrics().getWindowInsets();
        g.h(windowInsets, "context.getSystemService…indowMetrics.windowInsets");
        f3 windowInsetsCompat = f3.toWindowInsetsCompat(windowInsets, null);
        g.h(windowInsetsCompat, "toWindowInsetsCompat(platformInsets)");
        return windowInsetsCompat;
    }
}
