2019-02-04 20:08:30 +00:00
|
|
|
.class final Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;
|
|
|
|
.super Lkotlin/jvm/internal/k;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "WidgetChatInputSend.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->invoke(Ljava/util/List;)Z
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lkotlin/jvm/internal/k;",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/utilities/messagesend/MessageResult;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field final synthetic this$0:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/utilities/messagesend/MessageResult;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;->invoke(Lcom/discord/utilities/messagesend/MessageResult;)V
|
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
sget-object p1, Lkotlin/Unit;->beM:Lkotlin/Unit;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke(Lcom/discord/utilities/messagesend/MessageResult;)V
|
2019-03-16 01:04:31 +00:00
|
|
|
.locals 7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
const-string v0, "it"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
instance-of v0, p1, Lcom/discord/utilities/messagesend/MessageResult$UnknownFailure;
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
|
|
|
|
|
|
|
|
iget-object v0, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
check-cast v0, Lcom/discord/app/AppActivity;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/rest/SendUtils;->INSTANCE:Lcom/discord/utilities/rest/SendUtils;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/utilities/messagesend/MessageResult$UnknownFailure;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/messagesend/MessageResult$UnknownFailure;->getError()Lcom/discord/utilities/error/Error;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
move-object v2, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
check-cast v2, Landroid/content/Context;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
new-instance v3, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
invoke-direct {v3, p0, v0}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;Lcom/discord/app/AppActivity;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
check-cast v3, Lkotlin/jvm/functions/Function0;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
invoke-virtual {v1, p1, v2, v3}, Lcom/discord/utilities/rest/SendUtils;->handleSendError(Lcom/discord/utilities/error/Error;Landroid/content/Context;Lkotlin/jvm/functions/Function0;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
:cond_0
|
|
|
|
new-instance p1, Lkotlin/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
const-string v0, "null cannot be cast to non-null type com.discord.app.AppActivity"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
throw p1
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
:catch_0
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object v1, Lcom/discord/app/AppLog;->sU:Lcom/discord/app/AppLog;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
const/4 v3, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x6
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v2, "Tried to cast context as AppActivity"
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
|
|
|
.end method
|