apkfuckery/com.discord/smali/com/discord/widgets/chat/input/WidgetChatInput.smali

1261 lines
40 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/widgets/chat/input/WidgetChatInput;
.super Lcom/discord/app/AppFragment;
.source "WidgetChatInput.kt"
# interfaces
.implements Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;
# static fields
2019-12-06 03:29:40 +00:00
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatGuard$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatGuardAction$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
2020-01-28 00:59:01 +00:00
.field public final chatGuardActionSecondary$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
.field public final chatGuardSubtext$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatGuardText$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatInput$delegate:Lkotlin/Lazy;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatInputEdit$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatInputEditCancel$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatInputMentionsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final chatInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
.field public flexInputViewModel:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
2020-03-03 02:12:30 +00:00
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-08-30 20:04:20 +00:00
.locals 6
2019-07-24 11:27:29 +00:00
2020-01-28 00:59:01 +00:00
const/16 v0, 0xa
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-array v0, v0, [Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v1, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v2, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v2}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v3, "chatInputWrap"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v4, "getChatInputWrap()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v1, v2, v3, v4}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v2, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v2, v1}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v1, v0, v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "chatInputMentionsRecycler"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getChatInputMentionsRecycler()Landroidx/recyclerview/widget/RecyclerView;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x2
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "chatInputEdit"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getChatInputEdit()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x3
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "chatInputEditCancel"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getChatInputEditCancel()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x4
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
const-string v4, "chatGuard"
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
const-string v5, "getChatGuard()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x5
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
const-string v4, "chatGuardText"
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
const-string v5, "getChatGuardText()Landroid/widget/TextView;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x6
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
const-string v4, "chatGuardSubtext"
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
const-string v5, "getChatGuardSubtext()Landroid/widget/TextView;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x7
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
move-result-object v3
const-string v4, "chatGuardAction"
const-string v5, "getChatGuardAction()Landroid/widget/TextView;"
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-11-23 00:16:54 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-11-23 00:16:54 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
const/16 v1, 0x8
2019-11-23 00:16:54 +00:00
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2020-01-28 00:59:01 +00:00
const-string v4, "chatGuardActionSecondary"
const-string v5, "getChatGuardActionSecondary()Landroid/widget/TextView;"
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-01-28 00:59:01 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2020-01-28 00:59:01 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2020-01-28 00:59:01 +00:00
aput-object v2, v0, v1
const/16 v1, 0x9
2020-05-07 23:11:04 +00:00
new-instance v2, Ly/v/b/u;
2020-01-28 00:59:01 +00:00
const-class v3, Lcom/discord/widgets/chat/input/WidgetChatInput;
2020-05-07 23:11:04 +00:00
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
2020-01-28 00:59:01 +00:00
move-result-object v3
2019-12-06 03:29:40 +00:00
const-string v4, "chatInput"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v5, "getChatInput()Lcom/discord/widgets/chat/input/WidgetChatInputEditText;"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sput-object v0, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a0204
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a0200
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputMentionsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty;
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a01f1
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEdit$delegate:Lkotlin/properties/ReadOnlyProperty;
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a01f3
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditCancel$delegate:Lkotlin/properties/ReadOnlyProperty;
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a01f5
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-23 00:16:54 +00:00
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuard$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a01f9
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-23 00:16:54 +00:00
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardText$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a01f8
2019-11-23 00:16:54 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardSubtext$delegate:Lkotlin/properties/ReadOnlyProperty;
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a01f6
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-23 00:16:54 +00:00
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardAction$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v0, 0x7f0a01f7
2020-01-28 00:59:01 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2020-01-28 00:59:01 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardActionSecondary$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
new-instance v0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
invoke-direct {v0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;-><init>()V
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
new-instance v0, Lcom/discord/widgets/chat/input/WidgetChatInput$chatInput$2;
invoke-direct {v0, p0}, Lcom/discord/widgets/chat/input/WidgetChatInput$chatInput$2;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInput;)V
2020-05-07 23:11:04 +00:00
invoke-static {v0}, Lf/o/a/j/a;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInput$delegate:Lkotlin/Lazy;
return-void
.end method
.method public static final synthetic access$configureUI(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V
.locals 0
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput;->configureUI(Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V
return-void
.end method
2020-01-28 00:59:01 +00:00
.method public static final synthetic access$showFollowSheet(Lcom/discord/widgets/chat/input/WidgetChatInput;JJ)V
.locals 0
invoke-direct {p0, p1, p2, p3, p4}, Lcom/discord/widgets/chat/input/WidgetChatInput;->showFollowSheet(JJ)V
return-void
.end method
2019-07-24 11:27:29 +00:00
.method private final configureUI(Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V
2020-03-27 22:23:51 +00:00
.locals 11
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/View;
move-result-object v0
2019-08-20 03:53:10 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-08-20 03:53:10 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-08-20 03:53:10 +00:00
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isInputShowing()Z
move-result v2
goto :goto_0
:cond_0
2019-07-24 11:27:29 +00:00
const/4 v2, 0x0
2019-08-20 03:53:10 +00:00
:goto_0
2020-03-03 02:12:30 +00:00
const/16 v3, 0x8
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
if-eqz v2, :cond_1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
const/4 v2, 0x0
2019-08-20 03:53:10 +00:00
2020-03-03 02:12:30 +00:00
goto :goto_1
2019-08-20 03:53:10 +00:00
2020-03-03 02:12:30 +00:00
:cond_1
const/16 v2, 0x8
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
:goto_1
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
2019-08-20 03:53:10 +00:00
2020-03-03 02:12:30 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuard()Landroid/view/View;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v0
2019-08-20 03:53:10 +00:00
2020-03-03 02:12:30 +00:00
const/4 v2, 0x1
2019-11-23 00:16:54 +00:00
2020-03-01 21:12:02 +00:00
if-eqz p1, :cond_2
2019-11-23 00:16:54 +00:00
2020-03-03 02:12:30 +00:00
iget-boolean v4, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isLurking:Z
2019-11-23 00:16:54 +00:00
2020-03-03 02:12:30 +00:00
if-eq v4, v2, :cond_6
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
:cond_2
if-eqz p1, :cond_3
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isVerificationLevelTriggered()Z
move-result v4
2019-08-20 03:53:10 +00:00
2020-03-03 02:12:30 +00:00
if-eq v4, v2, :cond_6
2019-08-20 03:53:10 +00:00
2020-03-01 21:12:02 +00:00
:cond_3
if-eqz p1, :cond_4
2020-03-01 08:10:35 +00:00
2020-03-03 02:12:30 +00:00
iget-boolean v4, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isSystemDM:Z
2020-03-01 08:10:35 +00:00
2020-03-03 02:12:30 +00:00
if-eq v4, v2, :cond_6
2019-08-20 03:53:10 +00:00
2020-03-01 21:12:02 +00:00
:cond_4
2020-03-03 02:12:30 +00:00
if-eqz p1, :cond_5
iget-boolean v4, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z
if-ne v4, v2, :cond_5
goto :goto_2
2020-03-01 08:10:35 +00:00
2020-03-01 21:12:02 +00:00
:cond_5
2020-03-03 02:12:30 +00:00
const/4 v2, 0x0
:cond_6
:goto_2
if-eqz v2, :cond_7
goto :goto_3
:cond_7
const/16 v1, 0x8
2020-03-01 08:10:35 +00:00
2020-03-03 02:12:30 +00:00
:goto_3
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
if-nez p1, :cond_8
2019-07-24 11:27:29 +00:00
return-void
2020-03-03 02:12:30 +00:00
:cond_8
2019-11-23 00:16:54 +00:00
iget-boolean v0, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isSystemDM:Z
2020-04-17 17:35:24 +00:00
if-eqz v0, :cond_9
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView;
move-result-object v0
2020-05-07 23:11:04 +00:00
const v1, 0x7f1213ee
2019-11-23 00:16:54 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardSubtext()Landroid/widget/TextView;
move-result-object v0
2020-05-07 23:11:04 +00:00
const v1, 0x7f1213ef
2019-11-23 00:16:54 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2019-11-23 00:16:54 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2019-11-23 00:16:54 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {v0, v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
move-result-object v0
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
2019-11-23 00:16:54 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView;
2019-11-23 00:16:54 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v0
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
goto/16 :goto_4
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
:cond_9
2019-07-24 11:27:29 +00:00
iget-boolean v0, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isLurking:Z
2020-05-07 23:11:04 +00:00
const v1, 0x7f1207cf
2020-01-28 00:59:01 +00:00
2020-05-07 23:11:04 +00:00
const v2, 0x7f120644
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
if-eqz v0, :cond_b
2020-01-28 00:59:01 +00:00
new-instance v0, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$lurkGuild$1;
invoke-direct {v0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$lurkGuild$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V
2020-03-03 02:12:30 +00:00
iget-boolean v4, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z
2020-01-28 00:59:01 +00:00
2020-05-07 23:11:04 +00:00
const v5, 0x7f120d1b
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
if-eqz v4, :cond_a
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v3
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(I)V
2019-07-24 11:27:29 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
2020-03-03 02:12:30 +00:00
move-result-object v2
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {v2, v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v1
2020-04-17 17:35:24 +00:00
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$1;
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {v2, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V
2019-07-24 11:27:29 +00:00
2020-01-28 00:59:01 +00:00
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2019-07-24 11:27:29 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
move-result-object v1
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, v5}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2020-01-28 00:59:01 +00:00
move-result-object v2
invoke-static {v1, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView;
move-result-object v1
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0;
invoke-direct {v2, v0}, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-04-17 17:35:24 +00:00
goto/16 :goto_4
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
:cond_a
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView;
2020-03-03 02:12:30 +00:00
move-result-object v1
2020-01-28 00:59:01 +00:00
2020-05-07 23:11:04 +00:00
const v2, 0x7f120d1c
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
2020-03-03 02:12:30 +00:00
move-result-object v1
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, v5}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v2
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {v1, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
2020-03-03 02:12:30 +00:00
move-result-object v1
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0;
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-direct {v2, v0}, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0;-><init>(Lkotlin/jvm/functions/Function1;)V
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView;
move-result-object v0
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
goto :goto_4
2020-01-28 00:59:01 +00:00
2020-04-17 17:35:24 +00:00
:cond_b
2020-01-28 00:59:01 +00:00
iget-boolean v0, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z
2020-04-17 17:35:24 +00:00
if-eqz v0, :cond_c
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView;
move-result-object v0
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
move-result-object v0
2020-03-03 02:12:30 +00:00
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {v0, v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
move-result-object v0
2020-04-17 17:35:24 +00:00
new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$2;
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$2;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView;
move-result-object v0
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
goto :goto_4
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
:cond_c
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p1, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getVerificationText(Landroid/content/Context;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {p1, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getVerificationActionText(Landroid/content/Context;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
invoke-static {v0, v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getVerificationAction()Landroid/view/View$OnClickListener;
2020-03-03 02:12:30 +00:00
move-result-object v1
2020-01-28 00:59:01 +00:00
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v0
2020-03-03 02:12:30 +00:00
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
:goto_4
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInput()Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2020-03-03 02:12:30 +00:00
move-result-object v4
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
iget-object v5, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputEdit()Landroid/view/View;
2020-03-03 02:12:30 +00:00
move-result-object v6
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputEditCancel()Landroid/view/View;
2020-03-03 02:12:30 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
iget-object v10, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputViewModel:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
2020-03-27 22:23:51 +00:00
2020-03-03 02:12:30 +00:00
move-object v8, p1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-object v9, p0
2019-12-06 03:29:40 +00:00
2020-04-17 17:35:24 +00:00
invoke-static/range {v4 .. v10}, 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
return-void
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatGuard()Landroid/view/View;
.locals 3
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuard$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-11-23 00:16:54 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x4
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-23 00:16:54 +00:00
check-cast v0, Landroid/view/View;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatGuardAction()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardAction$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
const/4 v2, 0x7
2019-07-24 11:27:29 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
2019-11-23 00:16:54 +00:00
check-cast v0, Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2020-01-28 00:59:01 +00:00
.method private final getChatGuardActionSecondary()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardActionSecondary$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0x8
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
return-object v0
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatGuardSubtext()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardSubtext$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
const/4 v2, 0x6
2019-07-24 11:27:29 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
2019-11-23 00:16:54 +00:00
check-cast v0, Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatGuardText()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardText$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
const/4 v2, 0x5
2019-07-24 11:27:29 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
2019-11-23 00:16:54 +00:00
check-cast v0, Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatInput()Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2019-12-06 03:29:40 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInput$delegate:Lkotlin/Lazy;
2019-12-06 03:29:40 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2020-01-28 00:59:01 +00:00
const/16 v2, 0x9
2019-12-06 03:29:40 +00:00
aget-object v1, v1, v2
2019-11-23 00:16:54 +00:00
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
return-object v0
.end method
.method private final getChatInputEdit()Landroid/view/View;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEdit$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
const/4 v2, 0x2
2019-07-24 11:27:29 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
return-object v0
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatInputEditCancel()Landroid/view/View;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditCancel$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
const/4 v2, 0x3
2019-07-24 11:27:29 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
return-object v0
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatInputMentionsRecycler()Landroidx/recyclerview/widget/RecyclerView;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputMentionsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
2019-11-23 00:16:54 +00:00
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-23 00:16:54 +00:00
.method private final getChatInputWrap()Landroid/view/View;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-23 00:16:54 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
2019-11-23 00:16:54 +00:00
check-cast v0, Landroid/view/View;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2020-01-28 00:59:01 +00:00
.method private final showFollowSheet(JJ)V
.locals 6
sget-object v0, Lcom/discord/widgets/announcements/WidgetChannelFollowSheet;->Companion:Lcom/discord/widgets/announcements/WidgetChannelFollowSheet$Companion;
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v1
const-string v2, "requireFragmentManager()"
2020-05-07 23:11:04 +00:00
invoke-static {v1, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-01-28 00:59:01 +00:00
move-wide v2, p1
move-wide v4, p3
invoke-virtual/range {v0 .. v5}, Lcom/discord/widgets/announcements/WidgetChannelFollowSheet$Companion;->show(Landroidx/fragment/app/FragmentManager;JJ)V
return-void
.end method
2019-07-24 11:27:29 +00:00
# virtual methods
2019-12-06 03:29:40 +00:00
.method public getContentViewResId()I
2019-07-24 11:27:29 +00:00
.locals 1
2020-05-07 22:12:04 +00:00
const v0, 0x7f0d0168
2019-07-24 11:27:29 +00:00
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public onDestroyView()V
2020-05-07 23:11:04 +00:00
.locals 3
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
invoke-virtual {v0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->reset()V
2020-05-07 23:11:04 +00:00
invoke-static {}, Lf/a/e/c$b;->a()Lf/a/e/c;
2020-04-27 21:50:40 +00:00
move-result-object v0
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/View;
move-result-object v1
invoke-virtual {v1}, Landroid/view/View;->getId()I
move-result v1
2020-05-07 23:11:04 +00:00
iget-object v2, v0, Lf/a/e/c;->d:Ljava/util/Map;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v2, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {v0}, Lf/a/e/c;->a()V
2020-04-27 21:50:40 +00:00
2019-07-24 11:27:29 +00:00
invoke-super {p0}, Lcom/discord/app/AppFragment;->onDestroyView()V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onFilesTooLarge(IFZ)V
2019-07-24 11:27:29 +00:00
.locals 6
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
move-result-object v1
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2019-07-24 11:27:29 +00:00
const-string v0, "context ?: return"
2020-05-07 23:11:04 +00:00
invoke-static {v1, v0}, Ly/v/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-virtual {p0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
2019-07-24 11:27:29 +00:00
move-result-object v2
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_0
2019-07-24 11:27:29 +00:00
const-string v0, "fragmentManager ?: return"
2020-05-07 23:11:04 +00:00
invoke-static {v2, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
sget-object v0, Lcom/discord/utilities/rest/SendUtils;->INSTANCE:Lcom/discord/utilities/rest/SendUtils;
move v3, p2
move v4, p1
move v5, p3
invoke-virtual/range {v0 .. v5}, Lcom/discord/utilities/rest/SendUtils;->tryShowFilesTooLargeDialog(Landroid/content/Context;Landroidx/fragment/app/FragmentManager;FIZ)Z
2019-12-06 03:29:40 +00:00
:cond_0
2019-07-24 11:27:29 +00:00
return-void
.end method
2020-03-27 22:23:51 +00:00
.method public onMessageTooLong(II)V
2020-04-17 16:36:30 +00:00
.locals 17
2020-03-27 22:23:51 +00:00
move-object/from16 v0, p0
2020-04-17 16:36:30 +00:00
sget-object v1, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
2020-03-27 22:23:51 +00:00
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
2020-04-17 16:36:30 +00:00
move-result-object v2
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
const-string v3, "requireFragmentManager()"
2020-03-27 22:23:51 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v2, v3}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-03-27 22:23:51 +00:00
2020-05-07 23:11:04 +00:00
const v3, 0x7f120d8e
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
invoke-virtual {v0, v3}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
move-result-object v3
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
const/4 v4, 0x2
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
new-array v4, v4, [Ljava/lang/Object;
2020-03-27 22:23:51 +00:00
invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
const/4 v6, 0x0
2020-04-17 16:36:30 +00:00
aput-object v5, v4, v6
2020-03-27 22:23:51 +00:00
invoke-static/range {p2 .. p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
const/4 v6, 0x1
2020-04-17 16:36:30 +00:00
aput-object v5, v4, v6
2020-03-27 22:23:51 +00:00
2020-05-07 23:11:04 +00:00
const v5, 0x7f120d8d
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
invoke-virtual {v0, v5, v4}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
move-result-object v4
2020-03-27 22:23:51 +00:00
2020-04-17 17:35:24 +00:00
const-string v5, "getString(\n R\u2026xCharacterCount\n )"
2020-03-27 22:23:51 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v4, v5}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-03-27 22:23:51 +00:00
2020-05-07 23:11:04 +00:00
const v5, 0x7f120f1b
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
invoke-virtual {v0, v5}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
move-result-object v5
const/4 v6, 0x0
2020-03-27 22:23:51 +00:00
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
const/4 v13, 0x0
const/4 v14, 0x0
2020-04-17 16:36:30 +00:00
const/16 v15, 0x1ff0
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
const/16 v16, 0x0
2020-03-27 22:23:51 +00:00
2020-04-17 16:36:30 +00:00
invoke-static/range {v1 .. v16}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;->show$default(Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/discord/stores/StoreNotices$Dialog$Type;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;IILjava/lang/Object;)V
2020-03-27 22:23:51 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onViewBound(Landroid/view/View;)V
.locals 1
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p1, :cond_2
2019-07-24 11:27:29 +00:00
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInput()Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
move-result-object p1
if-eqz p1, :cond_0
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputMentionsRecycler()Landroidx/recyclerview/widget/RecyclerView;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;->initMentions(Landroidx/recyclerview/widget/RecyclerView;)V
:cond_0
2020-03-01 21:12:02 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInput()Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
move-result-object p1
2020-03-01 08:10:35 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p1, :cond_1
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
invoke-virtual {v0, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->configureFlexInputFragment(Lcom/discord/app/AppFragment;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)V
2020-03-01 08:10:35 +00:00
2020-03-01 21:12:02 +00:00
:cond_1
2020-04-27 21:50:40 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/View;
move-result-object p1
2020-05-07 23:11:04 +00:00
invoke-static {}, Lf/a/e/c$b;->a()Lf/a/e/c;
2020-04-27 21:50:40 +00:00
move-result-object v0
invoke-virtual {p1, v0}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
2020-03-03 02:12:30 +00:00
return-void
:cond_2
2019-12-06 03:29:40 +00:00
const-string p1, "view"
2020-05-07 23:11:04 +00:00
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public onViewBoundOrOnResume()V
.locals 12
2019-07-24 11:27:29 +00:00
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInput()Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
move-result-object v0
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;->configureMentionsDataSubscriptions(Lcom/discord/app/AppFragment;)V
2019-07-24 11:27:29 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-static {v0}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->get(Landroid/content/Context;)Lrx/Observable;
move-result-object v0
const-string v1, "WidgetChatInputModel\n .get(context)"
2020-05-07 23:11:04 +00:00
invoke-static {v0, v1}, Ly/v/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
const/4 v1, 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0, p0, v2, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v4, Lcom/discord/widgets/chat/input/WidgetChatInput;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v5, 0x0
2019-07-24 11:27:29 +00:00
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
2019-12-06 03:29:40 +00:00
new-instance v9, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBoundOrOnResume$1;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v9, p0}, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInput;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/16 v10, 0x1e
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static/range {v3 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
new-instance v0, Landroidx/lifecycle/ViewModelProvider;
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
2020-03-03 02:12:30 +00:00
2020-04-17 17:35:24 +00:00
move-result-object v1
2020-03-03 02:12:30 +00:00
2020-04-17 17:35:24 +00:00
if-eqz v1, :cond_1
2020-03-03 02:12:30 +00:00
2020-04-17 17:35:24 +00:00
new-instance v2, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$FlexInputViewModelFactory;
2020-03-03 02:12:30 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {v2}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$FlexInputViewModelFactory;-><init>()V
2020-04-11 15:34:05 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {v0, v1, v2}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V
2020-04-11 15:34:05 +00:00
2020-04-17 17:35:24 +00:00
const-class v1, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;
2020-04-11 15:34:05 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {v0, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
2020-04-11 15:34:05 +00:00
2020-04-17 17:35:24 +00:00
move-result-object v0
2020-04-11 15:34:05 +00:00
2020-04-17 17:35:24 +00:00
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputViewModel:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInput()Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
move-result-object v0
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputViewModel:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
invoke-virtual {v0, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->setViewModel(Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V
:cond_1
return-void
2019-07-24 11:27:29 +00:00
.end method