158 lines
5.6 KiB
Smali
158 lines
5.6 KiB
Smali
.class public final Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetTextChannelSettings.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Action2;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/channels/WidgetTextChannelSettings;->configureUI(Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Action2<",
|
|
"Landroid/view/MenuItem;",
|
|
"Landroid/content/Context;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $this_configureUI:Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/channels/WidgetTextChannelSettings;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/channels/WidgetTextChannelSettings;Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->this$0:Lcom/discord/widgets/channels/WidgetTextChannelSettings;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->$this_configureUI:Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Landroid/view/MenuItem;Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const-string v0, "menuItem"
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I
|
|
|
|
move-result p1
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_0
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getUserGuildSettings()Lcom/discord/stores/StoreUserGuildSettings;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p2, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->$this_configureUI:Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, p2, v0}, Lcom/discord/stores/StoreUserGuildSettings;->setChannelNotificationsDefault(Landroid/content/Context;Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_1
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->$this_configureUI:Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;->isPublicGuildRulesChannel()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->$this_configureUI:Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;->isPublicGuildUpdatesChannel()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->this$0:Lcom/discord/widgets/channels/WidgetTextChannelSettings;
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->$this_configureUI:Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p1, p2}, Lcom/discord/widgets/channels/WidgetTextChannelSettings;->access$confirmDelete(Lcom/discord/widgets/channels/WidgetTextChannelSettings;Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->this$0:Lcom/discord/widgets/channels/WidgetTextChannelSettings;
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->$this_configureUI:Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/channels/WidgetTextChannelSettings$Model;->isPublicGuildRulesChannel()Z
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1, p2}, Lcom/discord/widgets/channels/WidgetTextChannelSettings;->access$cannotDeleteWarn(Lcom/discord/widgets/channels/WidgetTextChannelSettings;Z)V
|
|
|
|
:goto_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x7f0a04b8
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
check-cast p1, Landroid/view/MenuItem;
|
|
|
|
check-cast p2, Landroid/content/Context;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/channels/WidgetTextChannelSettings$configureUI$1;->call(Landroid/view/MenuItem;Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|