discord-jadx/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsVanityU...

40 lines
1.7 KiB
Java

package com.discord.widgets.servers;
import android.widget.TextView;
import com.discord.utilities.error.Error;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetServerSettingsVanityUrl.kt */
public final class WidgetServerSettingsVanityUrl$updateVanityUrl$2 extends o implements Function1<Error, Unit> {
public final /* synthetic */ WidgetServerSettingsVanityUrl this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetServerSettingsVanityUrl$updateVanityUrl$2(WidgetServerSettingsVanityUrl widgetServerSettingsVanityUrl) {
super(1);
this.this$0 = widgetServerSettingsVanityUrl;
}
/* 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(Error error) {
invoke(error);
return Unit.a;
}
public final void invoke(Error error) {
m.checkNotNullParameter(error, "error");
WidgetServerSettingsVanityUrl.access$showLoadingUI(this.this$0, false);
Error.Response response = error.getResponse();
m.checkNotNullExpressionValue(response, "error.response");
if (response.getCode() == 50020) {
error.setShowErrorToasts(false);
TextView textView = WidgetServerSettingsVanityUrl.access$getBinding$p(this.this$0).d;
m.checkNotNullExpressionValue(textView, "binding.serverSettingsVanityUrlErrorText");
textView.setVisibility(0);
}
}
}