package com.discord.widgets.settings; import android.widget.LinearLayout; import com.discord.utilities.fcm.NotificationClient; import com.discord.views.CheckedSetting; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: WidgetSettingsNotifications.kt */ public final class WidgetSettingsNotifications$onViewBoundOrOnResume$1 extends o implements Function1 { public final /* synthetic */ WidgetSettingsNotifications this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetSettingsNotifications$onViewBoundOrOnResume$1(WidgetSettingsNotifications widgetSettingsNotifications) { super(1); this.this$0 = widgetSettingsNotifications; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(NotificationClient.SettingsV2 settingsV2) { invoke(settingsV2); return Unit.a; } public final void invoke(NotificationClient.SettingsV2 settingsV2) { m.checkNotNullParameter(settingsV2, "settings"); LinearLayout linearLayout = WidgetSettingsNotifications.access$getBinding$p(this.this$0).g; m.checkNotNullExpressionValue(linearLayout, "binding.settingsNotificationsWrap"); linearLayout.setVisibility(settingsV2.isEnabled() ? 0 : 8); CheckedSetting checkedSetting = WidgetSettingsNotifications.access$getBinding$p(this.this$0).d; m.checkNotNullExpressionValue(checkedSetting, "binding.settingsNotificationsEnabled"); checkedSetting.setChecked(settingsV2.isEnabled()); CheckedSetting checkedSetting2 = WidgetSettingsNotifications.access$getBinding$p(this.this$0).b; m.checkNotNullExpressionValue(checkedSetting2, "binding.settingsInappNotifsSwitch"); checkedSetting2.setChecked(settingsV2.isEnabledInApp()); CheckedSetting checkedSetting3 = WidgetSettingsNotifications.access$getBinding$p(this.this$0).f2017c; m.checkNotNullExpressionValue(checkedSetting3, "binding.settingsNotificationsBlink"); checkedSetting3.setChecked(settingsV2.isDisableBlink()); CheckedSetting checkedSetting4 = WidgetSettingsNotifications.access$getBinding$p(this.this$0).f; m.checkNotNullExpressionValue(checkedSetting4, "binding.settingsNotificationsVibrations"); checkedSetting4.setChecked(settingsV2.isDisableVibrate()); CheckedSetting checkedSetting5 = WidgetSettingsNotifications.access$getBinding$p(this.this$0).e; m.checkNotNullExpressionValue(checkedSetting5, "binding.settingsNotificationsMuteAll"); checkedSetting5.setChecked(settingsV2.isDisableSound()); } }