apkfuckery/com.discord/smali_classes2/com/lytefast/flexinput/fragment/FlexInputFragment.smali

2409 lines
66 KiB
Smali

.class public Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.super Landroidx/fragment/app/Fragment;
.source "FlexInputFragment.kt"
# interfaces
.implements Lcom/lytefast/flexinput/FlexInputCoordinator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/fragment/app/Fragment;",
"Lcom/lytefast/flexinput/FlexInputCoordinator<",
"Ljava/lang/Object;",
">;"
}
.end annotation
# static fields
.field public static final A:Ljava/lang/String;
# instance fields
.field public d:Landroid/view/ViewGroup;
.field public e:Landroid/view/View;
.field public f:Landroid/view/View;
.field public g:Landroid/view/ViewGroup;
.field public h:Landroid/view/View;
.field public i:Landroidx/recyclerview/widget/RecyclerView;
.field public j:Landroid/view/View;
.field public k:Landroid/widget/ImageView;
.field public l:Landroid/view/View;
.field public m:Landroid/view/View;
.field public n:Landroidx/appcompat/widget/AppCompatEditText;
.field public o:Landroid/view/View;
.field public p:Landroid/view/View;
.field public q:Landroid/view/View;
.field public r:Le/b/a/c/a;
.field public s:Lcom/lytefast/flexinput/InputListener;
.field public t:Lcom/lytefast/flexinput/managers/FileManager;
.field public u:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter<",
"Lcom/lytefast/flexinput/model/Attachment<",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
.end field
.field public v:[Le/b/a/b/a$b;
.field public w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
.field public x:Lrx/Subscription;
.field public y:Lrx/Subscription;
.field public z:Lrx/Subscription;
# direct methods
.method public static constructor <clinit>()V
.locals 2
const-class v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "FlexInputFragment::class.java.name"
invoke-static {v0, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sput-object v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->A:Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V
return-void
.end method
.method public static final synthetic a(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/widget/ImageView;
.locals 0
iget-object p0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroid/widget/ImageView;
if-eqz p0, :cond_0
return-object p0
:cond_0
const-string p0, "emojiBtn"
invoke-static {p0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 p0, 0x0
throw p0
.end method
.method public static final synthetic a(Lcom/lytefast/flexinput/fragment/FlexInputFragment;I)V
.locals 3
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object v0
const-string v1, "childFragmentManager.beginTransaction()"
invoke-static {v0, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v1, Le/b/a/a/a;
invoke-direct {v1}, Le/b/a/a/a;-><init>()V
const-string v2, "Add Content"
invoke-virtual {v1, v0, v2}, Le/b/a/a/a;->show(Landroidx/fragment/app/FragmentTransaction;Ljava/lang/String;)I
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->executePendingTransactions()Z
invoke-virtual {v1}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog;
move-result-object v0
if-nez v0, :cond_0
goto :goto_0
:cond_0
invoke-virtual {v1, p1}, Le/b/a/a/a;->a(I)V
new-instance p1, Le/b/a/a/f;
invoke-direct {p1, p0}, Le/b/a/a/f;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
iget-object v0, v1, Le/b/a/a/a;->j:Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;
if-eqz v0, :cond_1
iget-object v2, v1, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager;
if-eqz v2, :cond_1
invoke-virtual {v2, v0}, Landroidx/viewpager/widget/ViewPager;->removeOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V
:cond_1
iput-object p1, v1, Le/b/a/a/a;->j:Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;
iget-object p1, v1, Le/b/a/a/a;->j:Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;
if-eqz p1, :cond_2
iget-object v0, v1, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager;
if-eqz v0, :cond_2
invoke-virtual {v0, p1}, Landroidx/viewpager/widget/ViewPager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V
:cond_2
invoke-virtual {v1}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog;
move-result-object p1
if-eqz p1, :cond_3
new-instance v0, Le/b/a/a/g;
invoke-direct {v0, p0}, Le/b/a/a/g;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {p1, v0}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
:cond_3
new-instance p1, Le/b/a/a/h;
invoke-direct {p1, p0}, Le/b/a/a/h;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
iput-object p1, v1, Le/b/a/a/a;->i:Lkotlin/jvm/functions/Function1;
:goto_0
return-void
.end method
.method public static final synthetic a(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Lcom/lytefast/flexinput/viewmodel/FlexInputState;)V
.locals 0
invoke-virtual {p0, p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;)V
return-void
.end method
.method public static final synthetic a(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Le/b/a/f/a;)V
.locals 0
invoke-virtual {p0, p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Le/b/a/f/a;)V
return-void
.end method
.method public static final synthetic b(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/View;
.locals 0
iget-object p0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h:Landroid/view/View;
if-eqz p0, :cond_0
return-object p0
:cond_0
const-string p0, "emojiContainer"
invoke-static {p0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 p0, 0x0
throw p0
.end method
.method public static final synthetic c(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/ViewGroup;
.locals 0
iget-object p0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->g:Landroid/view/ViewGroup;
if-eqz p0, :cond_0
return-object p0
:cond_0
const-string p0, "inputContainer"
invoke-static {p0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 p0, 0x0
throw p0
.end method
.method public static final synthetic d(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroidx/appcompat/widget/AppCompatEditText;
.locals 0
iget-object p0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
if-eqz p0, :cond_0
return-object p0
:cond_0
const-string p0, "inputEt"
invoke-static {p0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 p0, 0x0
throw p0
.end method
.method public static final synthetic e(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Z
.locals 0
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->d()Z
move-result p0
return p0
.end method
# virtual methods
.method public final a(Landroidx/fragment/app/Fragment;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.locals 3
if-nez p1, :cond_0
return-object p0
:cond_0
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object v0
sget v1, Lcom/lytefast/flexinput/R$e;->flex_input_emoji_container:I
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, p1, v2}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
move-result-object p1
invoke-virtual {p1}, Landroidx/fragment/app/FragmentTransaction;->commit()I
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroid/widget/ImageView;
if-eqz p1, :cond_1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V
return-object p0
:cond_1
const-string p1, "emojiBtn"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final a(Lcom/lytefast/flexinput/InputListener;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->s:Lcom/lytefast/flexinput/InputListener;
return-object p0
:cond_0
const-string p1, "inputListener"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final a(Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter<",
"Lcom/lytefast/flexinput/model/Attachment<",
"Ljava/lang/Object;",
">;>;)",
"Lcom/lytefast/flexinput/fragment/FlexInputFragment;"
}
.end annotation
const/4 v0, 0x0
if-eqz p1, :cond_2
invoke-virtual {p1}, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v1
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v2
invoke-virtual {v1, v2}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->initFrom(Lcom/lytefast/flexinput/utils/SelectionAggregator;)Lcom/lytefast/flexinput/utils/SelectionAggregator;
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->u:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->i:Landroidx/recyclerview/widget/RecyclerView;
if-eqz p1, :cond_1
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->u:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
if-eqz v1, :cond_0
invoke-virtual {p1, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
return-object p0
:cond_0
const-string p1, "attachmentPreviewAdapter"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "attachmentPreviewList"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v0
:cond_2
const-string p1, "previewAdapter"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public final a(Le/b/a/c/a;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.locals 0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->r:Le/b/a/c/a;
return-object p0
.end method
.method public final a([Le/b/a/b/a$b;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->v:[Le/b/a/b/a$b;
return-object p0
:cond_0
const-string p1, "pageSuppliers"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final a(Landroidx/appcompat/widget/AppCompatEditText;)V
.locals 2
if-eqz p1, :cond_0
new-instance v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment$b;
invoke-direct {v0, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$b;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {p1, v0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V
:cond_0
if-eqz p1, :cond_1
new-instance v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment$c;
invoke-direct {v0, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$c;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {p1, v0}, Landroid/widget/EditText;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
:cond_1
instance-of v0, p1, Lcom/lytefast/flexinput/widget/FlexEditText;
if-eqz v0, :cond_2
move-object v0, p1
check-cast v0, Lcom/lytefast/flexinput/widget/FlexEditText;
invoke-virtual {v0}, Lcom/lytefast/flexinput/widget/FlexEditText;->getInputContentHandler()Lkotlin/jvm/functions/Function1;
move-result-object v1
if-nez v1, :cond_2
new-instance v1, Lcom/lytefast/flexinput/fragment/FlexInputFragment$d;
invoke-direct {v1, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$d;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {v0, v1}, Lcom/lytefast/flexinput/widget/FlexEditText;->setInputContentHandler(Lkotlin/jvm/functions/Function1;)V
:cond_2
if-eqz p1, :cond_3
const/4 v0, 0x1
invoke-virtual {p1, v0}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V
:cond_3
return-void
.end method
.method public a(Lcom/lytefast/flexinput/managers/FileManager;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->t:Lcom/lytefast/flexinput/managers/FileManager;
return-void
:cond_0
const-string p1, "<set-?>"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public a(Lcom/lytefast/flexinput/model/Attachment;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/lytefast/flexinput/model/Attachment<",
"+",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
const/4 v0, 0x0
if-eqz p1, :cond_2
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v1
const-string v2, "Add Content"
invoke-virtual {v1, v2}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v1
check-cast v1, Landroidx/fragment/app/DialogFragment;
new-instance v2, Lcom/lytefast/flexinput/utils/SelectionCoordinator;
const/4 v3, 0x3
invoke-direct {v2, v0, v0, v3}, Lcom/lytefast/flexinput/utils/SelectionCoordinator;-><init>(Landroidx/collection/ArrayMap;Lcom/lytefast/flexinput/utils/SelectionCoordinator$ItemSelectionListener;I)V
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v3
invoke-virtual {v3, v2}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->registerSelectionCoordinator(Lcom/lytefast/flexinput/utils/SelectionCoordinator;)V
const/4 v3, 0x0
invoke-virtual {v2, p1, v3}, Lcom/lytefast/flexinput/utils/SelectionCoordinator;->b(Ljava/lang/Object;I)V
invoke-virtual {v2}, Lcom/lytefast/flexinput/utils/SelectionCoordinator;->b()V
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz p1, :cond_0
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v2
invoke-virtual {v2}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->getAttachments()Ljava/util/ArrayList;
move-result-object v2
invoke-interface {p1, v2}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->onAttachmentsUpdated(Ljava/util/List;)V
:cond_0
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->i:Landroidx/recyclerview/widget/RecyclerView;
if-eqz p1, :cond_1
new-instance v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment$a;
invoke-direct {v0, v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$a;-><init>(Landroidx/fragment/app/DialogFragment;)V
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z
return-void
:cond_1
const-string p1, "attachmentPreviewList"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v0
:cond_2
const-string p1, "attachment"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public final a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;)V
.locals 11
sget-object v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment$e;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment$e;
new-instance v1, Lcom/lytefast/flexinput/fragment/FlexInputFragment$f;
invoke-direct {v1, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$f;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
new-instance v2, Lcom/lytefast/flexinput/fragment/FlexInputFragment$g;
invoke-direct {v2, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$g;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
new-instance v3, Lcom/lytefast/flexinput/fragment/FlexInputFragment$h;
invoke-direct {v3, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$h;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->d()Z
move-result v4
if-nez v4, :cond_0
return-void
:cond_0
iget-object v4, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
const-string v5, "inputEt"
const/4 v6, 0x0
if-eqz v4, :cond_25
invoke-virtual {v4}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v4
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Ljava/lang/String;
move-result-object v7
invoke-static {v4, v7}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v4
const/4 v7, 0x1
xor-int/2addr v4, v7
if-eqz v4, :cond_3
iget-object v4, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
if-eqz v4, :cond_2
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Ljava/lang/String;
move-result-object v8
invoke-virtual {v4, v8}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
iget-object v4, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
if-eqz v4, :cond_1
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Ljava/lang/String;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/String;->length()I
move-result v5
invoke-virtual {v4, v5}, Landroid/widget/EditText;->setSelection(I)V
goto :goto_0
:cond_1
invoke-static {v5}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_2
invoke-static {v5}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_3
:goto_0
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->h()Z
move-result v4
iget-object v5, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->q:Landroid/view/View;
if-eqz v5, :cond_24
const/16 v8, 0x8
const/4 v9, 0x0
if-nez v4, :cond_4
const/4 v10, 0x0
goto :goto_1
:cond_4
const/16 v10, 0x8
:goto_1
invoke-virtual {v5, v10}, Landroid/view/View;->setVisibility(I)V
iget-object v5, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->p:Landroid/view/View;
if-eqz v5, :cond_23
if-eqz v4, :cond_5
const/4 v10, 0x0
goto :goto_2
:cond_5
const/16 v10, 0x8
:goto_2
invoke-virtual {v5, v10}, Landroid/view/View;->setVisibility(I)V
iget-object v5, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->o:Landroid/view/View;
if-eqz v5, :cond_22
if-eqz v4, :cond_6
const/4 v4, 0x0
goto :goto_3
:cond_6
const/16 v4, 0x8
:goto_3
invoke-virtual {v5, v4}, Landroid/view/View;->setVisibility(I)V
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->b()Z
move-result v4
if-eqz v4, :cond_a
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Ljava/lang/String;
move-result-object v4
if-eqz v4, :cond_9
invoke-static {v4}, Lx/a0/u;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v4
invoke-interface {v4}, Ljava/lang/CharSequence;->length()I
move-result v4
if-lez v4, :cond_7
const/4 v4, 0x1
goto :goto_4
:cond_7
const/4 v4, 0x0
:goto_4
if-nez v4, :cond_8
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->c()Ljava/util/List;
move-result-object v4
invoke-interface {v4}, Ljava/util/Collection;->size()I
move-result v4
if-lez v4, :cond_a
:cond_8
const/4 v4, 0x1
goto :goto_5
:cond_9
new-instance p1, Lx/l;
const-string v0, "null cannot be cast to non-null type kotlin.CharSequence"
invoke-direct {p1, v0}, Lx/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_a
const/4 v4, 0x0
:goto_5
iget-object v5, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->l:Landroid/view/View;
if-eqz v5, :cond_21
invoke-virtual {v5, v4}, Landroid/view/View;->setEnabled(Z)V
iget-object v5, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m:Landroid/view/View;
const-string v10, "sendBtn"
if-eqz v5, :cond_20
invoke-virtual {v5, v4}, Landroid/view/View;->setEnabled(Z)V
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Ljava/lang/String;
move-result-object v4
invoke-interface {v4}, Ljava/lang/CharSequence;->length()I
move-result v4
if-lez v4, :cond_b
const/4 v4, 0x1
goto :goto_6
:cond_b
const/4 v4, 0x0
:goto_6
if-nez v4, :cond_d
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->c()Ljava/util/List;
move-result-object v4
invoke-interface {v4}, Ljava/util/Collection;->size()I
move-result v4
if-lez v4, :cond_c
goto :goto_7
:cond_c
const/4 v4, 0x0
goto :goto_8
:cond_d
:goto_7
const/4 v4, 0x1
:goto_8
iget-object v5, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m:Landroid/view/View;
if-eqz v5, :cond_1f
if-eqz v4, :cond_e
const/4 v10, 0x0
goto :goto_9
:cond_e
const/16 v10, 0x8
:goto_9
invoke-virtual {v5, v10}, Landroid/view/View;->setVisibility(I)V
iget-object v5, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->g:Landroid/view/ViewGroup;
const-string v10, "inputContainer"
if-eqz v5, :cond_1e
invoke-virtual {v5}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v5
if-eqz v5, :cond_1d
check-cast v5, Landroid/widget/RelativeLayout$LayoutParams;
if-nez v4, :cond_f
invoke-static {v8}, Lcom/discord/utilities/dimen/DimenUtils;->dpToPixels(I)I
move-result v4
goto :goto_a
:cond_f
const/4 v4, 0x0
:goto_a
iput v4, v5, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I
iget-object v4, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->g:Landroid/view/ViewGroup;
if-eqz v4, :cond_1c
invoke-virtual {v4, v5}, Landroid/view/ViewGroup;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
iget-object v4, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->e:Landroid/view/View;
if-eqz v4, :cond_1b
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->c()Ljava/util/List;
move-result-object v5
invoke-interface {v5}, Ljava/util/Collection;->size()I
move-result v5
if-lez v5, :cond_10
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->b()Z
move-result v5
if-eqz v5, :cond_10
const/4 v5, 0x0
goto :goto_b
:cond_10
const/16 v5, 0x8
:goto_b
invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V
iget-object v4, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->d:Landroid/view/ViewGroup;
if-eqz v4, :cond_1a
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->b()Z
move-result v5
if-eqz v5, :cond_11
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a()Z
move-result v5
if-eqz v5, :cond_11
const/4 v5, 0x1
goto :goto_c
:cond_11
const/4 v5, 0x0
:goto_c
invoke-virtual {v0, v4, v5}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$e;->a(Landroid/view/ViewGroup;Z)V
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
const-string v4, "Add Content"
invoke-virtual {v0, v4}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v0
check-cast v0, Le/b/a/a/a;
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->f()Ljava/lang/Integer;
move-result-object v4
if-eqz v4, :cond_13
if-nez v0, :cond_12
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->f()Ljava/lang/Integer;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
invoke-virtual {v1, v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$f;->invoke(I)V
goto :goto_d
:cond_12
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->f()Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
iget-object v0, v0, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager;
if-eqz v0, :cond_14
invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->setCurrentItem(I)V
goto :goto_d
:cond_13
if-eqz v0, :cond_14
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->isAdded()Z
move-result v1
if-ne v1, v7, :cond_14
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->isDetached()Z
move-result v1
if-nez v1, :cond_14
invoke-virtual {v0}, Landroidx/fragment/app/DialogFragment;->dismissAllowingStateLoss()V
:cond_14
:goto_d
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->j:Landroid/view/View;
if-eqz v0, :cond_19
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->b()Z
move-result v1
if-nez v1, :cond_15
const/4 v8, 0x0
:cond_15
invoke-virtual {v0, v8}, Landroid/view/View;->setVisibility(I)V
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->g()Z
move-result v0
if-eqz v0, :cond_16
invoke-virtual {v3}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$h;->invoke()V
goto :goto_e
:cond_16
invoke-virtual {v2}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$g;->invoke()Z
:goto_e
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
sget v1, Lcom/lytefast/flexinput/R$e;->flex_input_emoji_container:I
invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentManager;->findFragmentById(I)Landroidx/fragment/app/Fragment;
move-result-object v0
if-eqz v0, :cond_18
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->isAdded()Z
move-result v1
if-ne v1, v7, :cond_18
instance-of v1, v0, Le/b/a/e/b;
if-nez v1, :cond_17
move-object v0, v6
:cond_17
check-cast v0, Le/b/a/e/b;
if-eqz v0, :cond_18
invoke-virtual {p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->g()Z
move-result p1
invoke-interface {v0, p1}, Le/b/a/e/b;->isShown(Z)V
:cond_18
return-void
:cond_19
const-string p1, "cannotSendText"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_1a
const-string p1, "leftBtnsContainer"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_1b
const-string p1, "attachmentPreviewContainer"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_1c
invoke-static {v10}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_1d
new-instance p1, Lx/l;
const-string v0, "null cannot be cast to non-null type android.widget.RelativeLayout.LayoutParams"
invoke-direct {p1, v0}, Lx/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_1e
invoke-static {v10}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_1f
invoke-static {v10}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_20
invoke-static {v10}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_21
const-string p1, "sendBtnImage"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_22
const-string p1, "galleryBtn"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_23
const-string p1, "cameraBtn"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_24
const-string p1, "expandBtn"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
:cond_25
invoke-static {v5}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v6
.end method
.method public final a(Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V
.locals 0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
return-void
.end method
.method public final a(Le/b/a/f/a;)V
.locals 2
instance-of v0, p1, Le/b/a/f/a$c;
const/4 v1, 0x0
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v0
check-cast p1, Le/b/a/f/a$c;
iget-object p1, p1, Le/b/a/f/a$c;->a:Ljava/lang/String;
invoke-static {v0, p1, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
goto :goto_0
:cond_0
instance-of v0, p1, Le/b/a/f/a$d;
if-eqz v0, :cond_1
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v0
check-cast p1, Le/b/a/f/a$d;
iget p1, p1, Le/b/a/f/a$d;->a:I
invoke-static {v0, p1, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
goto :goto_0
:cond_1
instance-of v0, p1, Le/b/a/f/a$b;
if-eqz v0, :cond_3
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->r:Le/b/a/c/a;
if-eqz p1, :cond_4
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
if-eqz v0, :cond_2
invoke-interface {p1, v0}, Le/b/a/c/a;->requestDisplay(Landroid/widget/EditText;)V
goto :goto_0
:cond_2
const-string p1, "inputEt"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
:cond_3
instance-of p1, p1, Le/b/a/f/a$a;
if-eqz p1, :cond_4
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->r:Le/b/a/c/a;
if-eqz p1, :cond_4
invoke-interface {p1}, Le/b/a/c/a;->requestHide()V
:cond_4
:goto_0
return-void
.end method
.method public final a(Ljava/lang/String;)V
.locals 2
if-eqz p1, :cond_1
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz v0, :cond_0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 p1, 0x20
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->onInputTextAppended(Ljava/lang/String;)V
:cond_0
return-void
:cond_1
const-string p1, "emojiText"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final b(Landroidx/appcompat/widget/AppCompatEditText;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.locals 2
const/4 v0, 0x0
if-eqz p1, :cond_1
sget v1, Lcom/lytefast/flexinput/R$e;->flex_input_text_input:I
invoke-virtual {p1, v1}, Landroid/widget/EditText;->setId(I)V
const/4 v1, 0x1
invoke-virtual {p1, v1}, Landroid/widget/EditText;->setFocusable(Z)V
invoke-virtual {p1, v1}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->g:Landroid/view/ViewGroup;
if-eqz v1, :cond_0
new-instance v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment$l;
invoke-direct {v0, p0, p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$l;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Landroidx/appcompat/widget/AppCompatEditText;)V
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z
return-object p0
:cond_0
const-string p1, "inputContainer"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "customEditText"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/lytefast/flexinput/utils/SelectionAggregator<",
"Lcom/lytefast/flexinput/model/Attachment<",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->u:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v0
return-object v0
:cond_0
const-string v0, "attachmentPreviewAdapter"
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public final c()[Le/b/a/b/a$b;
.locals 3
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->v:[Le/b/a/b/a$b;
const/4 v1, 0x0
const-string v2, "pageSuppliers"
if-eqz v0, :cond_3
array-length v0, v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
sget-object v0, Le/b/a/b/a;->b:Le/b/a/b/a$a;
invoke-virtual {v0}, Le/b/a/b/a$a;->a()[Le/b/a/b/a$b;
move-result-object v0
goto :goto_1
:cond_1
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->v:[Le/b/a/b/a$b;
if-eqz v0, :cond_2
:goto_1
return-object v0
:cond_2
invoke-static {v2}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v1
:cond_3
invoke-static {v2}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v1
.end method
.method public final d()Z
.locals 1
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->isAdded()Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->isRemoving()Z
move-result v0
if-nez v0, :cond_0
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->isDetached()Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public final e()V
.locals 2
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz v0, :cond_0
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->s:Lcom/lytefast/flexinput/InputListener;
invoke-interface {v0, v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->onSendButtonClicked(Lcom/lytefast/flexinput/InputListener;)V
:cond_0
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->u:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
if-eqz v0, :cond_1
invoke-virtual {v0}, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;->a()V
return-void
:cond_1
const-string v0, "attachmentPreviewAdapter"
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public getFileManager()Lcom/lytefast/flexinput/managers/FileManager;
.locals 1
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->t:Lcom/lytefast/flexinput/managers/FileManager;
if-eqz v0, :cond_0
return-object v0
:cond_0
const-string v0, "fileManager"
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public final onBackPressed()Ljava/lang/Boolean;
.locals 1
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->onHideEmojiKeyboard()Z
move-result v0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.locals 12
const/4 p3, 0x0
if-eqz p1, :cond_13
sget v0, Lcom/lytefast/flexinput/R$f;->flex_input_widget:I
const/4 v1, 0x0
invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p1
if-eqz p1, :cond_12
check-cast p1, Landroid/widget/LinearLayout;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_attachment_preview_container:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.f\u2026chment_preview_container)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->e:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_attachment_clear_btn:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.f\u2026put_attachment_clear_btn)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->f:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_main_input_container:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.f\u2026put_main_input_container)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p2, Landroid/view/ViewGroup;
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->g:Landroid/view/ViewGroup;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_emoji_container:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_emoji_container)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_attachment_preview_list:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.f\u2026_attachment_preview_list)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p2, Landroidx/recyclerview/widget/RecyclerView;
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->i:Landroidx/recyclerview/widget/RecyclerView;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_container:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_container)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p2, Landroid/view/ViewGroup;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_left_btns_container:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.f\u2026nput_left_btns_container)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p2, Landroid/view/ViewGroup;
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->d:Landroid/view/ViewGroup;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_text_input:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_text_input)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p2, Landroidx/appcompat/widget/AppCompatEditText;
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_cannot_send_text:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.f\u2026x_input_cannot_send_text)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->j:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_emoji_btn:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_emoji_btn)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p2, Landroid/widget/ImageView;
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroid/widget/ImageView;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_send_btn_image:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_send_btn_image)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->l:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_send_btn_container:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.f\u2026input_send_btn_container)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_camera_btn:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_camera_btn)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->p:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_gallery_btn:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_gallery_btn)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->o:Landroid/view/View;
sget p2, Lcom/lytefast/flexinput/R$e;->flex_input_expand_btn:I
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object p2
const-string v0, "root.findViewById(R.id.flex_input_expand_btn)"
invoke-static {p2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->q:Landroid/view/View;
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->f:Landroid/view/View;
const-string v0, "attachmentClearButton"
if-eqz p2, :cond_11
new-instance v2, Lcom/lytefast/flexinput/fragment/FlexInputFragment$i;
invoke-direct {v2, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$i;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {p2, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
if-eqz p2, :cond_10
invoke-virtual {p0, p2}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Landroidx/appcompat/widget/AppCompatEditText;)V
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroid/widget/ImageView;
const-string v2, "emojiBtn"
if-eqz p2, :cond_f
new-instance v3, Lf;
invoke-direct {v3, v1, p0}, Lf;-><init>(ILjava/lang/Object;)V
invoke-virtual {p2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m:Landroid/view/View;
const-string v3, "sendBtn"
if-eqz p2, :cond_e
new-instance v4, Lf;
const/4 v5, 0x1
invoke-direct {v4, v5, p0}, Lf;-><init>(ILjava/lang/Object;)V
invoke-virtual {p2, v4}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->p:Landroid/view/View;
const-string v4, "cameraBtn"
if-eqz p2, :cond_d
new-instance v6, Lf;
const/4 v7, 0x2
invoke-direct {v6, v7, p0}, Lf;-><init>(ILjava/lang/Object;)V
invoke-virtual {p2, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->o:Landroid/view/View;
const-string v6, "galleryBtn"
if-eqz p2, :cond_c
new-instance v8, Lf;
const/4 v9, 0x3
invoke-direct {v8, v9, p0}, Lf;-><init>(ILjava/lang/Object;)V
invoke-virtual {p2, v8}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->q:Landroid/view/View;
const-string v8, "expandBtn"
if-eqz p2, :cond_b
new-instance v10, Lf;
const/4 v11, 0x4
invoke-direct {v10, v11, p0}, Lf;-><init>(ILjava/lang/Object;)V
invoke-virtual {p2, v10}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
const/4 p2, 0x6
new-array p2, p2, [Landroid/view/View;
iget-object v10, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->f:Landroid/view/View;
if-eqz v10, :cond_a
aput-object v10, p2, v1
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->o:Landroid/view/View;
if-eqz v0, :cond_9
aput-object v0, p2, v5
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->p:Landroid/view/View;
if-eqz v0, :cond_8
aput-object v0, p2, v7
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroid/widget/ImageView;
if-eqz v0, :cond_7
aput-object v0, p2, v9
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m:Landroid/view/View;
if-eqz v0, :cond_6
aput-object v0, p2, v11
const/4 v0, 0x5
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->q:Landroid/view/View;
if-eqz v1, :cond_5
aput-object v1, p2, v0
invoke-static {p2}, Le/n/a/j/a;->listOf([Ljava/lang/Object;)Ljava/util/List;
move-result-object p2
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p2
:goto_0
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
new-instance v1, Le/b/a/a/i;
invoke-direct {v1, p0}, Le/b/a/a/i;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {v0, v1}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V
goto :goto_0
:cond_0
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h:Landroid/view/View;
const-string v0, "emojiContainer"
if-eqz p2, :cond_4
invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object p2
if-eqz p2, :cond_3
check-cast p2, Landroid/widget/LinearLayout$LayoutParams;
new-instance v1, Landroid/graphics/Point;
invoke-direct {v1}, Landroid/graphics/Point;-><init>()V
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v2
const-string v3, "requireActivity()"
invoke-static {v2, v3}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
move-result-object v2
if-eqz v2, :cond_2
invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
move-result-object v2
if-eqz v2, :cond_2
invoke-virtual {v2, v1}, Landroid/view/Display;->getSize(Landroid/graphics/Point;)V
const v2, 0x3ecccccd # 0.4f
iget v1, v1, Landroid/graphics/Point;->y:I
int-to-float v1, v1
mul-float v1, v1, v2
float-to-int v1, v1
iput v1, p2, Landroid/widget/LinearLayout$LayoutParams;->height:I
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h:Landroid/view/View;
if-eqz v1, :cond_1
invoke-virtual {v1, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
goto :goto_1
:cond_1
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_2
:goto_1
new-instance p2, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v0
const-string v1, "requireContext()"
invoke-static {v0, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string v1, "requireContext().contentResolver"
invoke-static {v0, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p2, v0, p3}, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;-><init>(Landroid/content/ContentResolver;Lkotlin/jvm/functions/Function1;)V
invoke-virtual {p0, p2}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->a(Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
return-object p1
:cond_3
new-instance p1, Lx/l;
const-string p2, "null cannot be cast to non-null type android.widget.LinearLayout.LayoutParams"
invoke-direct {p1, p2}, Lx/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_5
invoke-static {v8}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_6
invoke-static {v3}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_7
invoke-static {v2}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_8
invoke-static {v4}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_9
invoke-static {v6}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_a
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_b
invoke-static {v8}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_c
invoke-static {v6}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_d
invoke-static {v4}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_e
invoke-static {v3}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_f
invoke-static {v2}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_10
const-string p1, "inputEt"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_11
invoke-static {v0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw p3
:cond_12
new-instance p1, Lx/l;
const-string p2, "null cannot be cast to non-null type android.widget.LinearLayout"
invoke-direct {p1, p2}, Lx/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_13
const-string p1, "inflater"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw p3
.end method
.method public onInflate(Landroid/content/Context;Landroid/util/AttributeSet;Landroid/os/Bundle;)V
.locals 1
const/4 v0, 0x0
if-eqz p1, :cond_1
if-eqz p2, :cond_0
invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onInflate(Landroid/content/Context;Landroid/util/AttributeSet;Landroid/os/Bundle;)V
new-instance p2, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object p1
const-string p3, "context.contentResolver"
invoke-static {p1, p3}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 p3, 0x2
invoke-direct {p2, p1, v0, p3}, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;-><init>(Landroid/content/ContentResolver;Lkotlin/jvm/functions/Function1;I)V
invoke-virtual {p2}, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object p1
new-instance p3, Le/b/a/a/j;
invoke-direct {p3, p0}, Le/b/a/a/j;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
invoke-virtual {p1, p3}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->addItemSelectionListener(Lcom/lytefast/flexinput/utils/SelectionCoordinator$ItemSelectionListener;)Lcom/lytefast/flexinput/utils/SelectionAggregator;
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->u:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
return-void
:cond_0
const-string p1, "attrs"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "context"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public onPause()V
.locals 1
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->onFlexInputFragmentPause()V
:cond_0
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->x:Lrx/Subscription;
if-eqz v0, :cond_1
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
:cond_1
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->y:Lrx/Subscription;
if-eqz v0, :cond_2
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
:cond_2
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->z:Lrx/Subscription;
if-eqz v0, :cond_3
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
:cond_3
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onPause()V
return-void
.end method
.method public onResume()V
.locals 3
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onResume()V
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->observeState()Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/lytefast/flexinput/fragment/FlexInputFragment$j;
invoke-direct {v1, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$j;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
new-instance v2, Le/b/a/a/k;
invoke-direct {v2, v1}, Le/b/a/a/k;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {v0, v2}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
move-result-object v0
iput-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->x:Lrx/Subscription;
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz v0, :cond_0
invoke-interface {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->observeEvents()Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/lytefast/flexinput/fragment/FlexInputFragment$k;
invoke-direct {v1, p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment$k;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
new-instance v2, Le/b/a/a/k;
invoke-direct {v2, v1}, Le/b/a/a/k;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {v0, v2}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
move-result-object v0
iput-object v0, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->y:Lrx/Subscription;
:cond_0
return-void
.end method
.method public onSaveInstanceState(Landroid/os/Bundle;)V
.locals 3
const/4 v0, 0x0
if-eqz p1, :cond_1
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onSaveInstanceState(Landroid/os/Bundle;)V
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v1
invoke-virtual {v1}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->getAttachments()Ljava/util/ArrayList;
move-result-object v1
const-string v2, "FlexInput.ATTACHMENTS"
invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n:Landroidx/appcompat/widget/AppCompatEditText;
if-eqz v1, :cond_0
invoke-virtual {v1}, Landroidx/appcompat/widget/AppCompatEditText;->getText()Landroid/text/Editable;
move-result-object v0
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "FlexInput.TEXT"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
return-void
:cond_0
const-string p1, "inputEt"
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "outState"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.locals 2
const/4 v0, 0x0
if-eqz p1, :cond_3
if-eqz p2, :cond_2
const-string p1, "FlexInput.ATTACHMENTS"
invoke-virtual {p2, p1}, Landroid/os/Bundle;->getParcelableArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
move-result-object p1
if-eqz p1, :cond_0
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result v1
if-lez v1, :cond_0
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v1
invoke-virtual {v1, p1}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->initFrom(Ljava/util/ArrayList;)Lcom/lytefast/flexinput/utils/SelectionAggregator;
:cond_0
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz p1, :cond_1
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
move-result-object v1
invoke-virtual {v1}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->getAttachments()Ljava/util/ArrayList;
move-result-object v1
invoke-interface {p1, v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;->onAttachmentsUpdated(Ljava/util/List;)V
:cond_1
const-string p1, "FlexInput.TEXT"
invoke-virtual {p2, p1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_2
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
if-eqz p2, :cond_2
const/4 v1, 0x2
invoke-static {p2, p1, v0, v1, v0}, Le/k/a/b/l1/e;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;Ljava/lang/String;Ljava/lang/Boolean;ILjava/lang/Object;)V
:cond_2
return-void
:cond_3
const-string p1, "view"
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method