56 lines
3 KiB
Java
56 lines
3 KiB
Java
package com.discord.widgets.servers;
|
|
|
|
import android.view.View;
|
|
import com.discord.restapi.RestAPIParams;
|
|
import com.discord.utilities.rest.RestAPI;
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
import com.discord.widgets.servers.WidgetServerSettingsTransferOwnership;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
import rx.Observable;
|
|
/* compiled from: WidgetServerSettingsTransferOwnership.kt */
|
|
public final class WidgetServerSettingsTransferOwnership$configureUI$3 implements View.OnClickListener {
|
|
public final /* synthetic */ WidgetServerSettingsTransferOwnership.Model $model;
|
|
public final /* synthetic */ WidgetServerSettingsTransferOwnership this$0;
|
|
|
|
/* compiled from: WidgetServerSettingsTransferOwnership.kt */
|
|
/* renamed from: com.discord.widgets.servers.WidgetServerSettingsTransferOwnership$configureUI$3$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<Void, Unit> {
|
|
public final /* synthetic */ WidgetServerSettingsTransferOwnership$configureUI$3 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(WidgetServerSettingsTransferOwnership$configureUI$3 widgetServerSettingsTransferOwnership$configureUI$3) {
|
|
super(1);
|
|
this.this$0 = widgetServerSettingsTransferOwnership$configureUI$3;
|
|
}
|
|
|
|
/* 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(Void r1) {
|
|
invoke(r1);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Void r1) {
|
|
this.this$0.this$0.dismiss();
|
|
}
|
|
}
|
|
|
|
public WidgetServerSettingsTransferOwnership$configureUI$3(WidgetServerSettingsTransferOwnership widgetServerSettingsTransferOwnership, WidgetServerSettingsTransferOwnership.Model model) {
|
|
this.this$0 = widgetServerSettingsTransferOwnership;
|
|
this.$model = model;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().transferGuildOwnership(this.$model.getGuild().getId(), new RestAPIParams.TransferGuildOwnership(this.$model.getUser().getId(), WidgetServerSettingsTransferOwnership.access$getMfaCode$p(this.this$0))), false, 1, null), this.this$0, null, 2, null);
|
|
Class<?> cls = this.this$0.getClass();
|
|
m.checkNotNullExpressionValue(view, "view");
|
|
ObservableExtensionsKt.appSubscribe$default(ui$default, cls, view.getContext(), (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 60, (Object) null);
|
|
}
|
|
}
|