package com.discord.widgets.settings; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.appcompat.widget.AppCompatImageView; import androidx.recyclerview.widget.RecyclerView; import com.discord.databinding.WidgetSettingsAuthorizedAppsListItemBinding; import com.discord.models.domain.ModelOAuth2Token; import com.discord.widgets.settings.WidgetSettingsAuthorizedApps; import com.facebook.drawee.view.SimpleDraweeView; import com.google.android.material.card.MaterialCardView; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; import kotlin.jvm.functions.Function2; /* compiled from: WidgetSettingsAuthorizedApps.kt */ public final class WidgetSettingsAuthorizedApps$adapter$1 extends o implements Function2 { public final /* synthetic */ WidgetSettingsAuthorizedApps this$0; /* compiled from: WidgetSettingsAuthorizedApps.kt */ /* renamed from: com.discord.widgets.settings.WidgetSettingsAuthorizedApps$adapter$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { public final /* synthetic */ WidgetSettingsAuthorizedApps$adapter$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(WidgetSettingsAuthorizedApps$adapter$1 widgetSettingsAuthorizedApps$adapter$1) { super(1); this.this$0 = widgetSettingsAuthorizedApps$adapter$1; } /* 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(ModelOAuth2Token modelOAuth2Token) { invoke(modelOAuth2Token); return Unit.a; } public final void invoke(ModelOAuth2Token modelOAuth2Token) { m.checkNotNullParameter(modelOAuth2Token, "oath2Token"); this.this$0.this$0.deauthorizeApp(modelOAuth2Token.getId()); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetSettingsAuthorizedApps$adapter$1(WidgetSettingsAuthorizedApps widgetSettingsAuthorizedApps) { super(2); this.this$0 = widgetSettingsAuthorizedApps; } public final WidgetSettingsAuthorizedApps.AuthorizedAppViewHolder invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) { m.checkNotNullParameter(layoutInflater, "layoutInflater"); m.checkNotNullParameter(viewGroup, "parent"); View inflate = layoutInflater.inflate(2131559198, viewGroup, false); int i = 2131364108; AppCompatImageView appCompatImageView = (AppCompatImageView) inflate.findViewById(2131364108); if (appCompatImageView != null) { i = 2131364109; TextView textView = (TextView) inflate.findViewById(2131364109); if (textView != null) { i = 2131364110; TextView textView2 = (TextView) inflate.findViewById(2131364110); if (textView2 != null) { i = 2131364111; SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(2131364111); if (simpleDraweeView != null) { MaterialCardView materialCardView = (MaterialCardView) inflate; i = 2131364113; TextView textView3 = (TextView) inflate.findViewById(2131364113); if (textView3 != null) { i = 2131364114; TextView textView4 = (TextView) inflate.findViewById(2131364114); if (textView4 != null) { i = 2131364115; RecyclerView recyclerView = (RecyclerView) inflate.findViewById(2131364115); if (recyclerView != null) { WidgetSettingsAuthorizedAppsListItemBinding widgetSettingsAuthorizedAppsListItemBinding = new WidgetSettingsAuthorizedAppsListItemBinding(materialCardView, appCompatImageView, textView, textView2, simpleDraweeView, materialCardView, textView3, textView4, recyclerView); m.checkNotNullExpressionValue(widgetSettingsAuthorizedAppsListItemBinding, "WidgetSettingsAuthorized…tInflater, parent, false)"); return new WidgetSettingsAuthorizedApps.AuthorizedAppViewHolder(widgetSettingsAuthorizedAppsListItemBinding, new AnonymousClass1(this)); } } } } } } } throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); } }