discord-jadx/app/src/main/java/com/discord/widgets/settings/WidgetSettingsAuthorizedApp...

93 lines
5.1 KiB
Java

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<LayoutInflater, ViewGroup, WidgetSettingsAuthorizedApps.AuthorizedAppViewHolder> {
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<ModelOAuth2Token, Unit> {
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(2131559213, viewGroup, false);
int i = 2131364154;
AppCompatImageView appCompatImageView = (AppCompatImageView) inflate.findViewById(2131364154);
if (appCompatImageView != null) {
i = 2131364155;
TextView textView = (TextView) inflate.findViewById(2131364155);
if (textView != null) {
i = 2131364156;
TextView textView2 = (TextView) inflate.findViewById(2131364156);
if (textView2 != null) {
i = 2131364157;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(2131364157);
if (simpleDraweeView != null) {
MaterialCardView materialCardView = (MaterialCardView) inflate;
i = 2131364159;
TextView textView3 = (TextView) inflate.findViewById(2131364159);
if (textView3 != null) {
i = 2131364160;
TextView textView4 = (TextView) inflate.findViewById(2131364160);
if (textView4 != null) {
i = 2131364161;
RecyclerView recyclerView = (RecyclerView) inflate.findViewById(2131364161);
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)));
}
}