apkfuckery/com.discord/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5.smali

140 lines
5.4 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "WidgetChatInputSend.kt"
# interfaces
.implements Lcom/lytefast/flexinput/InputListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2020-04-17 17:35:24 +00:00
value = Lcom/discord/widgets/chat/input/WidgetChatInputSend;->configureSendListeners(Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Landroid/view/View;Landroid/view/View;Lcom/discord/widgets/chat/input/WidgetChatInputModel;Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V
2019-07-24 11:27:29 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = null
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic $model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic $sendMessage$1:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic $sendMessageError$2:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Lcom/discord/widgets/chat/input/WidgetChatInputModel;Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;)V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
iput-object p2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$sendMessageError$2:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;
iput-object p3, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$sendMessage$1:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2020-04-17 17:35:24 +00:00
.method public final onSend(Ljava/lang/String;Ljava/util/List;)Z
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-04-17 17:35:24 +00:00
"Ljava/lang/String;",
2019-07-24 11:27:29 +00:00
"Ljava/util/List<",
"+",
"Lcom/lytefast/flexinput/model/Attachment<",
"*>;>;)Z"
}
.end annotation
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-12-06 03:29:40 +00:00
iget-boolean v0, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isOnCooldown:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isEditing()Z
move-result p1
if-nez p1, :cond_0
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$sendMessageError$2:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;
2020-04-18 17:44:22 +00:00
const p2, 0x7f1203d2
2019-07-24 11:27:29 +00:00
invoke-virtual {p1, p2}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;->invoke(I)Z
move-result p1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isEditing()Z
move-result p1
const-string v0, "list"
if-eqz p1, :cond_1
2020-04-17 19:35:49 +00:00
invoke-static {p2, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p2}, Ljava/util/Collection;->isEmpty()Z
2019-07-24 11:27:29 +00:00
move-result p1
xor-int/lit8 p1, p1, 0x1
if-eqz p1, :cond_1
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$sendMessageError$2:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;
2020-04-18 17:44:22 +00:00
const p2, 0x7f120597
2019-07-24 11:27:29 +00:00
invoke-virtual {p1, p2}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;->invoke(I)Z
move-result p1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_1
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
iget-boolean p1, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->ableToSendMessage:Z
if-eqz p1, :cond_2
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$sendMessage$1:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
2020-04-17 19:35:49 +00:00
invoke-static {p2, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
invoke-virtual {p1, p2}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->invoke(Ljava/util/List;)Z
move-result p1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_2
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$5;->$sendMessageError$2:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;
2020-04-23 17:38:59 +00:00
const p2, 0x7f120e11
2019-07-24 11:27:29 +00:00
invoke-virtual {p1, p2}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$2;->invoke(I)Z
move-result p1
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return p1
.end method