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

310 lines
11 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;
2020-07-22 00:04:40 +00:00
.super Li0/n/c/i;
2020-07-08 16:44:49 +00:00
.source "WidgetChatInputAttachments.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->configureFlexInputFragment(Lcom/discord/app/AppFragment;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-22 00:04:40 +00:00
"Li0/n/c/i;",
2020-07-08 16:44:49 +00:00
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field public final synthetic $chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
.field public final synthetic $fragment:Lcom/discord/app/AppFragment;
.field public final synthetic this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
# direct methods
.method public constructor <init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/app/AppFragment;)V
.locals 0
iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
iput-object p2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
iput-object p3, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$fragment:Lcom/discord/app/AppFragment;
const/4 p1, 0x0
2020-07-22 00:04:40 +00:00
invoke-direct {p0, p1}, Li0/n/c/i;-><init>(I)V
2020-07-08 16:44:49 +00:00
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
invoke-virtual {p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->invoke()V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
.end method
.method public final invoke()V
.locals 7
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
invoke-static {v0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$getFlexInputFragment$p(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
move-result-object v0
const/4 v1, 0x3
2020-07-22 00:04:40 +00:00
new-array v1, v1, [Lf/b/a/b/d$a;
2020-07-08 16:44:49 +00:00
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$1;
2020-07-22 00:04:40 +00:00
const v3, 0x7f08035e
2020-07-08 16:44:49 +00:00
2020-07-14 22:43:59 +00:00
const v4, 0x7f12024c
2020-07-08 16:44:49 +00:00
invoke-direct {v2, v3, v4}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$1;-><init>(II)V
const/4 v3, 0x0
aput-object v2, v1, v3
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$2;
2020-07-22 00:04:40 +00:00
const v4, 0x7f08030a
2020-07-08 16:44:49 +00:00
2020-07-14 22:43:59 +00:00
const v5, 0x7f12024b
2020-07-08 16:44:49 +00:00
invoke-direct {v2, v4, v5}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$2;-><init>(II)V
const/4 v4, 0x1
aput-object v2, v1, v4
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$3;
2020-07-22 00:04:40 +00:00
const v5, 0x7f08022b
2020-07-08 16:44:49 +00:00
2020-07-14 22:43:59 +00:00
const v6, 0x7f12038a
2020-07-08 16:44:49 +00:00
invoke-direct {v2, v5, v6}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$3;-><init>(II)V
const/4 v5, 0x2
aput-object v2, v1, v5
2020-07-22 00:04:40 +00:00
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->x:[Lf/b/a/b/d$a;
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
const/4 v2, 0x0
2020-07-22 00:04:40 +00:00
if-eqz v1, :cond_8
2020-07-08 16:44:49 +00:00
sget v5, Lcom/lytefast/flexinput/R$e;->flex_input_text_input:I
invoke-virtual {v1, v5}, Landroid/widget/EditText;->setId(I)V
invoke-virtual {v1, v4}, Landroid/widget/EditText;->setFocusable(Z)V
invoke-virtual {v1, v4}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V
2020-07-22 00:04:40 +00:00
iget-object v5, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h:Landroid/view/ViewGroup;
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
if-eqz v5, :cond_7
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
new-instance v6, Lf/b/a/a/p;
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
invoke-direct {v6, v0, v1}, Lf/b/a/a/p;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Landroidx/appcompat/widget/AppCompatEditText;)V
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
invoke-virtual {v5, v6}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$fragment:Lcom/discord/app/AppFragment;
invoke-virtual {v1}, Lcom/discord/app/AppFragment;->getFileManager()Lcom/lytefast/flexinput/managers/FileManager;
move-result-object v1
2020-07-22 00:04:40 +00:00
if-eqz v1, :cond_6
2020-07-08 16:44:49 +00:00
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->v:Lcom/lytefast/flexinput/managers/FileManager;
new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$$special$$inlined$apply$lambda$1;
invoke-direct {v1, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$$special$$inlined$apply$lambda$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;)V
2020-07-22 00:04:40 +00:00
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->t:Lf/b/a/c/a;
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
invoke-static {v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$createPreviewAdapter(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
move-result-object v1
2020-07-22 00:04:40 +00:00
if-eqz v1, :cond_5
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
iget-object v5, v1, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;->a:Lcom/lytefast/flexinput/utils/SelectionAggregator;
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
2020-07-22 00:04:40 +00:00
move-result-object v6
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
invoke-virtual {v5, v6}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->initFrom(Lcom/lytefast/flexinput/utils/SelectionAggregator;)Lcom/lytefast/flexinput/utils/SelectionAggregator;
2020-07-08 16:44:49 +00:00
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
2020-07-22 00:04:40 +00:00
iget-object v5, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroidx/recyclerview/widget/RecyclerView;
2020-07-16 18:51:06 +00:00
2020-07-22 00:04:40 +00:00
if-eqz v5, :cond_4
2020-07-16 18:51:06 +00:00
2020-07-22 00:04:40 +00:00
invoke-virtual {v5, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
invoke-static {v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$getEmojiPickerPolishFeatureFlag$p(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Lcom/discord/widgets/chat/input/emoji/EmojiPickerPolishFeatureFlag;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/widgets/chat/input/emoji/EmojiPickerPolishFeatureFlag;->isEnabled()Z
move-result v1
xor-int/2addr v1, v4
iget-object v4, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->d:Landroid/view/ViewGroup;
if-eqz v4, :cond_3
if-eqz v1, :cond_0
new-instance v1, Landroid/animation/LayoutTransition;
invoke-direct {v1}, Landroid/animation/LayoutTransition;-><init>()V
goto :goto_0
:cond_0
move-object v1, v2
:goto_0
invoke-virtual {v4, v1}, Landroid/view/ViewGroup;->setLayoutTransition(Landroid/animation/LayoutTransition;)V
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
invoke-static {v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$getChatInputFragmentManager$p(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Landroidx/fragment/app/FragmentManager;
move-result-object v4
iget-object v5, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
invoke-static {v1, v4, v5}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$createAndConfigureExpressionFragment(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Landroidx/fragment/app/FragmentManager;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)Landroidx/fragment/app/Fragment;
move-result-object v1
2020-07-22 00:04:40 +00:00
if-nez v1, :cond_1
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
goto :goto_1
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
:cond_1
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v4
invoke-virtual {v4}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object v4
sget v5, Lcom/lytefast/flexinput/R$e;->flex_input_expression_tray_container:I
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v6
invoke-virtual {v4, v5, v1, v6}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
move-result-object v1
invoke-virtual {v1}, Landroidx/fragment/app/FragmentTransaction;->commit()I
iget-object v0, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m:Landroid/widget/ImageView;
2020-07-22 00:04:40 +00:00
if-eqz v0, :cond_2
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V
2020-07-22 00:04:40 +00:00
:goto_1
2020-07-08 16:44:49 +00:00
return-void
2020-07-22 00:04:40 +00:00
:cond_2
2020-07-08 16:44:49 +00:00
const-string v0, "expressionBtn"
2020-07-22 00:04:40 +00:00
invoke-static {v0}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2020-07-16 18:51:06 +00:00
throw v2
2020-07-22 00:04:40 +00:00
:cond_3
const-string v0, "container"
invoke-static {v0}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
:cond_4
2020-07-08 16:44:49 +00:00
const-string v0, "attachmentPreviewList"
2020-07-22 00:04:40 +00:00
invoke-static {v0}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
throw v2
2020-07-22 00:04:40 +00:00
:cond_5
2020-07-08 16:44:49 +00:00
const-string v0, "previewAdapter"
2020-07-22 00:04:40 +00:00
invoke-static {v0}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
throw v2
2020-07-22 00:04:40 +00:00
:cond_6
2020-07-08 16:44:49 +00:00
const-string v0, "<set-?>"
2020-07-22 00:04:40 +00:00
invoke-static {v0}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
throw v2
2020-07-22 00:04:40 +00:00
:cond_7
2020-07-08 16:44:49 +00:00
const-string v0, "inputContainer"
2020-07-22 00:04:40 +00:00
invoke-static {v0}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
throw v2
2020-07-22 00:04:40 +00:00
:cond_8
2020-07-08 16:44:49 +00:00
const-string v0, "customEditText"
2020-07-22 00:04:40 +00:00
invoke-static {v0}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
throw v2
.end method