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

411 lines
15 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
.super Ljava/lang/Object;
.source "WidgetChatInputAttachments.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$PermissionsEmptyListAdapter;,
Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$DiscordFilesFragment;,
Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$DiscordPhotosFragment;,
Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$DiscordCameraFragment;
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final synthetic access$getFlexInputFragment$p(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.locals 0
iget-object p0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
return-object p0
.end method
.method public static final synthetic access$setAttachmentFromPicker(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Landroidx/core/view/inputmethod/InputContentInfoCompat;)V
.locals 0
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->setAttachmentFromPicker(Landroidx/core/view/inputmethod/InputContentInfoCompat;)V
return-void
.end method
.method public static final synthetic access$setFlexInputFragment$p(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
.locals 0
iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
return-void
.end method
.method private final createPreviewAdapter(Landroid/content/ContentResolver;)Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Lcom/lytefast/flexinput/model/Attachment<",
"+",
"Ljava/lang/Object;",
">;>(",
"Landroid/content/ContentResolver;",
")",
"Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter<",
"TT;>;"
}
.end annotation
new-instance v0, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$createPreviewAdapter$1;
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$createPreviewAdapter$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Landroid/content/ContentResolver;)V
invoke-direct {v0, p1, v1}, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;-><init>(Landroid/content/ContentResolver;Lkotlin/jvm/functions/Function1;)V
return-object v0
.end method
.method private final getContentResolver()Landroid/content/ContentResolver;
.locals 1
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->getContext()Landroid/content/Context;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method private final getContext()Landroid/content/Context;
.locals 1
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method private final setAttachmentFromPicker(Landroidx/core/view/inputmethod/InputContentInfoCompat;)V
2019-12-06 03:29:40 +00:00
.locals 4
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_1
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->getContext()Landroid/content/Context;
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
2020-05-07 22:12:04 +00:00
const v2, 0x7f120240
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
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
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_0
2019-07-24 11:27:29 +00:00
const-string v1, "?"
2019-12-06 03:29:40 +00:00
:goto_0
2019-10-01 14:15:45 +00:00
const-string v2, "context?.getString(R.str\u2026_filename_unknown) ?: \"?\""
2020-04-27 20:53:11 +00:00
invoke-static {v1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-10-01 14:15:45 +00:00
2019-07-24 11:27:29 +00:00
sget-object v2, Lcom/lytefast/flexinput/model/Attachment;->Companion:Lcom/lytefast/flexinput/model/Attachment$Companion;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, p1, v0, v3, v1}, Lcom/lytefast/flexinput/model/Attachment$Companion;->a(Landroidx/core/view/inputmethod/InputContentInfoCompat;Landroid/content/ContentResolver;ZLjava/lang/String;)Lcom/lytefast/flexinput/model/Attachment;
2019-07-24 11:27:29 +00:00
move-result-object p1
new-instance v0, Lcom/discord/widgets/chat/input/SourcedAttachment;
const-string v1, "keyboard"
invoke-direct {v0, p1, v1}, Lcom/discord/widgets/chat/input/SourcedAttachment;-><init>(Lcom/lytefast/flexinput/model/Attachment;Ljava/lang/String;)V
iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-07-24 11:27:29 +00:00
invoke-virtual {p1, v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Lcom/lytefast/flexinput/model/Attachment;)V
2019-12-06 03:29:40 +00:00
:cond_1
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method public final configureFlexInputFragment(Lcom/discord/app/AppFragment;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)V
2019-12-06 03:29:40 +00:00
.locals 9
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_7
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
if-eqz p2, :cond_6
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v2, "fragment.childFragmentManager"
2019-07-24 11:27:29 +00:00
2020-04-27 20:53:11 +00:00
invoke-static {v1, v2}, Lx/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
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$1;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p2, v2}, Lcom/lytefast/flexinput/widget/FlexEditText;->setInputContentHandler(Lkotlin/jvm/functions/Function1;)V
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v2, 0x7f0a0203
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v2}, Landroidx/fragment/app/FragmentManager;->findFragmentById(I)Landroidx/fragment/app/Fragment;
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
instance-of v3, v2, Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
if-nez v3, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-object v2, v0
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
check-cast v2, Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object v2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
if-eqz v2, :cond_5
2019-07-24 11:27:29 +00:00
const/4 v4, 0x3
2020-04-27 20:53:11 +00:00
new-array v4, v4, [Le/b/a/b/a$b;
2019-07-24 11:27:29 +00:00
new-instance v5, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1;
2020-05-07 22:12:04 +00:00
const v6, 0x7f080349
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v7, 0x7f120242
2019-07-24 11:27:29 +00:00
invoke-direct {v5, v6, v7}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1;-><init>(II)V
2019-12-06 03:29:40 +00:00
aput-object v5, v4, v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v5, 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v6, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$2;
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v7, 0x7f0802f4
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v8, 0x7f120241
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v6, v7, v8}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$2;-><init>(II)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v6, v4, v5
2019-07-24 11:27:29 +00:00
const/4 v5, 0x2
2019-12-06 03:29:40 +00:00
new-instance v6, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$3;
2019-07-24 11:27:29 +00:00
2020-05-07 22:12:04 +00:00
const v7, 0x7f080223
2019-07-24 11:27:29 +00:00
2020-04-30 00:48:06 +00:00
const v8, 0x7f12037a
2019-10-01 14:15:45 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v6, v7, v8}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$3;-><init>(II)V
2019-10-01 14:15:45 +00:00
2019-12-06 03:29:40 +00:00
aput-object v6, v4, v5
2019-10-01 14:15:45 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v2, v4}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a([Le/b/a/b/a$b;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-10-01 14:15:45 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, p2}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b(Landroidx/appcompat/widget/AppCompatEditText;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Lcom/discord/app/AppFragment;->getFileManager()Lcom/lytefast/flexinput/managers/FileManager;
move-result-object v4
2020-03-27 22:23:51 +00:00
invoke-virtual {v2, v4}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Lcom/lytefast/flexinput/managers/FileManager;)V
2019-07-24 11:27:29 +00:00
new-instance v4, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$$inlined$apply$lambda$1;
2019-12-06 03:29:40 +00:00
invoke-direct {v4, p0, p2, p1, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$$inlined$apply$lambda$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/app/AppFragment;Landroidx/fragment/app/FragmentManager;)V
2019-07-24 11:27:29 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v2, v4}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Le/b/a/c/a;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v4
2020-03-03 02:12:30 +00:00
if-eqz v4, :cond_1
2019-07-24 11:27:29 +00:00
invoke-direct {p0, v4}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->createPreviewAdapter(Landroid/content/ContentResolver;)Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
move-result-object v4
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v4}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
:cond_1
2020-05-07 22:12:04 +00:00
const v4, 0x7f0a0365
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v4}, Landroidx/fragment/app/FragmentManager;->findFragmentById(I)Landroidx/fragment/app/Fragment;
2019-07-24 11:27:29 +00:00
move-result-object v4
instance-of v5, v4, Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker;
2020-03-03 02:12:30 +00:00
if-nez v5, :cond_2
2019-07-24 11:27:29 +00:00
goto :goto_0
2020-03-03 02:12:30 +00:00
:cond_2
2019-12-06 03:29:40 +00:00
move-object v0, v4
2019-07-24 11:27:29 +00:00
:goto_0
2019-12-06 03:29:40 +00:00
check-cast v0, Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker;
2019-10-01 14:15:45 +00:00
2020-03-03 02:12:30 +00:00
if-nez v0, :cond_3
2019-10-01 14:15:45 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker$EmojiContextType;->CHAT:Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker$EmojiContextType;
2019-10-01 14:15:45 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker;->createInline(Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker$EmojiContextType;)Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker;
2019-10-01 14:15:45 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-10-01 14:15:45 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Landroidx/fragment/app/Fragment;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
:cond_3
if-eqz v0, :cond_4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$$inlined$apply$lambda$2;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2, p0, p2, p1, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$$inlined$apply$lambda$2;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/app/AppFragment;Landroidx/fragment/app/FragmentManager;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v2}, Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker;->setListener(Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker$Listener;)V
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
:cond_4
if-eqz v0, :cond_5
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$$inlined$apply$lambda$3;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2, p0, p2, p1, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$$inlined$apply$lambda$3;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/app/AppFragment;Landroidx/fragment/app/FragmentManager;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v2}, Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker;->setOnBackspacePressedListener(Lcom/discord/widgets/chat/input/emoji/WidgetChatInputEmojiPicker$OnBackspacePressedListener;)V
2019-07-24 11:27:29 +00:00
2020-03-03 02:12:30 +00:00
:cond_5
2019-07-24 11:27:29 +00:00
new-instance p2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$3;
invoke-direct {p2, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$3;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, p2, v3}, Lcom/discord/app/AppFragment;->setOnBackPressed(Lrx/functions/Func0;I)V
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
2020-03-03 02:12:30 +00:00
:cond_6
const-string p1, "chatInput"
2020-04-27 20:53:11 +00:00
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
2020-03-03 02:12:30 +00:00
throw v0
2019-12-06 03:29:40 +00:00
:cond_7
const-string p1, "fragment"
2020-04-27 20:53:11 +00:00
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method
2020-04-11 15:34:05 +00:00
.method public final reset()V
2019-07-24 11:27:29 +00:00
.locals 1
2020-04-11 15:34:05 +00:00
const/4 v0, 0x0
2020-04-10 14:32:51 +00:00
2020-04-11 15:34:05 +00:00
iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2019-07-24 11:27:29 +00:00
return-void
.end method
2020-04-17 17:35:24 +00:00
.method public final setInputListener(Lcom/lytefast/flexinput/InputListener;)V
2020-04-17 16:36:30 +00:00
.locals 1
2020-04-17 17:35:24 +00:00
if-eqz p1, :cond_1
2020-04-17 16:36:30 +00:00
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
if-eqz v0, :cond_0
2020-04-17 17:35:24 +00:00
invoke-virtual {v0, p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Lcom/lytefast/flexinput/InputListener;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
2020-04-17 16:36:30 +00:00
:cond_0
2020-04-17 17:35:24 +00:00
return-void
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
:cond_1
const-string p1, "inputListener"
2019-07-24 11:27:29 +00:00
2020-04-27 20:53:11 +00:00
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
const/4 p1, 0x0
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
throw p1
2019-07-24 11:27:29 +00:00
.end method
2020-04-17 17:35:24 +00:00
.method public final setViewModel(Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V
2019-07-24 11:27:29 +00:00
.locals 1
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->flexInputFragment:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
if-eqz v0, :cond_0
2020-04-17 17:35:24 +00:00
invoke-virtual {v0, p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method