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

1033 lines
23 KiB
Smali

.class public final Lcom/discord/widgets/chat/input/AppFlexInputViewModel;
.super Lf/a/b/b0;
.source "AppFlexInputViewModel.kt"
# interfaces
.implements Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/chat/input/AppFlexInputViewModel$FlexInputViewModelFactory;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/a/b/b0<",
"Lcom/lytefast/flexinput/viewmodel/FlexInputState;",
">;",
"Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;"
}
.end annotation
# instance fields
.field public eventSubject:Lrx/subjects/PublishSubject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/PublishSubject<",
"Lf/b/a/f/a;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/lytefast/flexinput/viewmodel/FlexInputState;)V
.locals 0
if-eqz p1, :cond_0
invoke-direct {p0, p1}, Lf/a/b/b0;-><init>(Ljava/lang/Object;)V
invoke-static {}, Lrx/subjects/PublishSubject;->o()Lrx/subjects/PublishSubject;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
return-void
:cond_0
const-string p1, "initialViewState"
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public observeEvents()Lrx/Observable;
.locals 2
.annotation build Landroidx/annotation/UiThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Lf/b/a/f/a;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
const-string v1, "eventSubject"
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method
.method public observeState()Lrx/Observable;
.locals 1
.annotation build Landroidx/annotation/UiThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Lcom/lytefast/flexinput/viewmodel/FlexInputState;",
">;"
}
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->observeViewState()Lrx/Observable;
move-result-object v0
return-object v0
.end method
.method public onAttachmentsUpdated(Ljava/util/List;)V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Lcom/lytefast/flexinput/model/Attachment<",
"+",
"Ljava/lang/Object;",
">;>;)V"
}
.end annotation
if-eqz p1, :cond_0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0x1ef
move-object v6, p1
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
:cond_0
const-string p1, "attachments"
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public onCalculatedMaxUnexpandedCharThreshold(I)V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0x1f7
move v5, p1
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onCameraButtonClicked()V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a()Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
new-instance v1, Lf/b/a/f/a$b;
const v2, 0x7f120385
invoke-direct {v1, v2}, Lf/b/a/f/a$b;-><init>(I)V
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
return-void
:cond_0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v0, 0x2
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v10, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v2, 0x0
const/16 v11, 0xde
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object v0
invoke-virtual {p0, v0}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onContentDialogDismissed()V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v7, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v2, 0x1
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0x1de
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object v0
invoke-virtual {p0, v0}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onContentDialogPageChanged(I)V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0x1df
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onEmojiKeyboardButtonClicked()V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->h()Z
move-result v0
xor-int/lit8 v10, v0, 0x1
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->h()Z
move-result v2
const/16 v11, 0xfe
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object v0
invoke-virtual {p0, v0}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onExpandButtonClicked()V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x1
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0x1fb
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object v0
invoke-virtual {p0, v0}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onFlexInputFragmentPause()V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xfe
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object v0
invoke-virtual {p0, v0}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onGalleryButtonClicked()V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a()Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
new-instance v1, Lf/b/a/f/a$b;
const v2, 0x7f120385
invoke-direct {v1, v2}, Lf/b/a/f/a$b;-><init>(I)V
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
return-void
:cond_0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v10, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v2, 0x0
const/16 v11, 0xde
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object v0
invoke-virtual {p0, v0}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onHideEmojiKeyboard()Z
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->h()Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x0
return v0
:cond_0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xff
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object v0
invoke-virtual {p0, v0}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
const/4 v0, 0x1
return v0
.end method
.method public onInputFocusedChanged(Z)V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0x1fe
move v2, p1
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method
.method public onInputTextAppended(Ljava/lang/String;)V
.locals 2
.annotation build Landroidx/annotation/UiThread;
.end annotation
if-eqz p1, :cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->e()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->onInputTextChanged(Ljava/lang/String;)V
return-void
:cond_0
const-string p1, "appendText"
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public onInputTextChanged(Ljava/lang/String;)V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
if-eqz p1, :cond_1
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v2, 0x0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v3}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->f()I
move-result v3
if-ge v0, v3, :cond_0
const/4 v0, 0x1
const/4 v4, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
const/4 v4, 0x0
:goto_0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0x1f9
move-object v3, p1
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
:cond_1
const-string p1, "inputText"
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public onInputTextTouched(Landroid/view/MotionEvent;)Z
.locals 11
.annotation build Landroidx/annotation/UiThread;
.end annotation
if-eqz p1, :cond_1
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result p1
const/4 v0, 0x1
if-ne p1, v0, :cond_0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object p1
move-object v0, p1
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v9, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v1, 0x1
const/16 v10, 0xfe
invoke-static/range {v0 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
:cond_0
const/4 p1, 0x0
return p1
:cond_1
const-string p1, "motionEvent"
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public onSendButtonClicked(Lcom/lytefast/flexinput/InputListener;)V
.locals 11
.annotation build Landroidx/annotation/UiThread;
.end annotation
if-eqz p1, :cond_0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v0}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->e()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->c()Ljava/util/List;
move-result-object v1
invoke-interface {p1, v0, v1}, Lcom/lytefast/flexinput/InputListener;->onSend(Ljava/lang/String;Ljava/util/List;)Z
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
if-eqz p1, :cond_1
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object p1
move-object v0, p1
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
sget-object v5, Lz/q/o;->d:Lz/q/o;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v1, 0x1
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/16 v10, 0x1cc
const-string v2, ""
invoke-static/range {v0 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
:cond_1
return-void
.end method
.method public onToolTipButtonLongPressed(Landroid/view/View;)Z
.locals 2
.annotation build Landroidx/annotation/UiThread;
.end annotation
if-eqz p1, :cond_0
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
new-instance v1, Lf/b/a/f/a$a;
invoke-virtual {p1}, Landroid/view/View;->getContentDescription()Ljava/lang/CharSequence;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v1, p1}, Lf/b/a/f/a$a;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
const/4 p1, 0x1
return p1
:cond_0
const-string p1, "button"
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public setSendMessageAndAttachFilePermission(ZZ)V
.locals 12
.annotation build Landroidx/annotation/UiThread;
.end annotation
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v10, 0x0
const/16 v11, 0x11f
move v8, p1
move v9, p2
invoke-static/range {v1 .. v11}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;ZLjava/lang/String;ZILjava/util/List;Ljava/lang/Integer;ZZZI)Lcom/lytefast/flexinput/viewmodel/FlexInputState;
move-result-object p1
invoke-virtual {p0, p1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
return-void
.end method