package com.revenuecat.purchases.ui.revenuecatui.customercenter.theme;

import C0.B;
import F1.n0;
import F1.o0;
import F1.p0;
import J4.a;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.view.View;
import android.view.Window;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class CustomerCenterPreviewThemeKt$CustomerCenterPreviewTheme$1$1 extends p implements a {
    final /* synthetic */ boolean $isDarkTheme;
    final /* synthetic */ View $view;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public CustomerCenterPreviewThemeKt$CustomerCenterPreviewTheme$1$1(View view, boolean z6) {
        super(0);
        this.$view = view;
        this.$isDarkTheme = z6;
    }

    @Override // J4.a
    public /* bridge */ /* synthetic */ Object invoke() {
        m963invoke();
        return C3137A.f25453a;
    }

    /* JADX INFO: renamed from: invoke, reason: collision with other method in class */
    public final void m963invoke() {
        Context context = this.$view.getContext();
        o.f(context, "null cannot be cast to non-null type android.app.Activity");
        Window window = ((Activity) context).getWindow();
        B b5 = new B(this.$view);
        int i6 = Build.VERSION.SDK_INT;
        (i6 >= 35 ? new p0(window, b5, 1) : i6 >= 30 ? new n0(window, b5, 1) : i6 >= 26 ? new o0(window, b5, 0) : new n0(window, b5, 0)).H(!this.$isDarkTheme);
    }
}
