43 lines
2 KiB
Java
43 lines
2 KiB
Java
package com.discord.widgets.servers;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import androidx.appcompat.app.AlertDialog;
|
|
import c.a.d.q;
|
|
import com.discord.utilities.rest.RestAPI;
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
import rx.functions.Action1;
|
|
/* compiled from: WidgetServerSettingsIntegrationsListItem.kt */
|
|
public final class WidgetServerSettingsIntegrationsListItem$showDisableSyncDialog$2 implements View.OnClickListener {
|
|
public final /* synthetic */ Context $context;
|
|
public final /* synthetic */ AlertDialog $dialog;
|
|
public final /* synthetic */ long $guildId;
|
|
public final /* synthetic */ long $integrationId;
|
|
|
|
/* compiled from: WidgetServerSettingsIntegrationsListItem.kt */
|
|
/* renamed from: com.discord.widgets.servers.WidgetServerSettingsIntegrationsListItem$showDisableSyncDialog$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T> implements Action1<Void> {
|
|
public final /* synthetic */ WidgetServerSettingsIntegrationsListItem$showDisableSyncDialog$2 this$0;
|
|
|
|
public AnonymousClass1(WidgetServerSettingsIntegrationsListItem$showDisableSyncDialog$2 widgetServerSettingsIntegrationsListItem$showDisableSyncDialog$2) {
|
|
this.this$0 = widgetServerSettingsIntegrationsListItem$showDisableSyncDialog$2;
|
|
}
|
|
|
|
public final void call(Void r1) {
|
|
this.this$0.$dialog.dismiss();
|
|
}
|
|
}
|
|
|
|
public WidgetServerSettingsIntegrationsListItem$showDisableSyncDialog$2(long j, long j2, AlertDialog alertDialog, Context context) {
|
|
this.$guildId = j;
|
|
this.$integrationId = j2;
|
|
this.$dialog = alertDialog;
|
|
this.$context = context;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
ObservableExtensionsKt.ui(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().deleteGuildIntegration(this.$guildId, this.$integrationId), false, 1, null)).k(q.j(new AnonymousClass1(this), this.$context, null, 4));
|
|
}
|
|
}
|