1205 lines
29 KiB
Smali
1205 lines
29 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$StoreState;,
|
||
|
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;Lrx/Observable;)V
|
||
|
.locals 10
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/lytefast/flexinput/viewmodel/FlexInputState;",
|
||
|
"Lrx/Observable<",
|
||
|
"Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
if-eqz p2, :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;
|
||
|
|
||
|
invoke-static {p2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Lrx/Observable;->a()Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string p2, "storeObservable\n \u2026 .distinctUntilChanged()"
|
||
|
|
||
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p2, 0x2
|
||
|
|
||
|
invoke-static {p1, p0, v0, p2, v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-class v2, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
new-instance v7, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$1;
|
||
|
|
||
|
invoke-direct {v7, p0}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$1;-><init>(Lcom/discord/widgets/chat/input/AppFlexInputViewModel;)V
|
||
|
|
||
|
const/16 v8, 0x1e
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
invoke-static/range {v1 .. v9}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
const-string p1, "storeObservable"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
const-string p1, "initialViewState"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$handleStoreState(Lcom/discord/widgets/chat/input/AppFlexInputViewModel;Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->handleStoreState(Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final handleStoreState(Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;)V
|
||
|
.locals 11
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;->getSelectedChannel()Lcom/discord/models/domain/ModelChannel;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;->getChannelPermission()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;->getLeftPanelState()Lcom/discord/panels/PanelState;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
instance-of v3, v3, Lcom/discord/panels/PanelState$a;
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;->getRightPanelState()Lcom/discord/panels/PanelState;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
instance-of v3, v3, Lcom/discord/panels/PanelState$a;
|
||
|
|
||
|
if-nez v3, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
:goto_1
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;->getNotice()Lcom/discord/stores/StoreNotices$Notice;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
if-eqz v6, :cond_2
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;->getNotice()Lcom/discord/stores/StoreNotices$Notice;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v6}, Lcom/discord/stores/StoreNotices$Notice;->isInAppNotification()Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-nez v6, :cond_2
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$StoreState;->getNotice()Lcom/discord/stores/StoreNotices$Notice;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/stores/StoreNotices$Notice;->isPopup()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-nez p1, :cond_2
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
invoke-static {v0, v2}, Lcom/discord/utilities/permissions/PermissionUtils;->hasAccessWrite(Lcom/discord/models/domain/ModelChannel;Ljava/lang/Integer;)Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
move v7, v6
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_4
|
||
|
|
||
|
const v0, 0x8000
|
||
|
|
||
|
invoke-static {v0, v2}, Lcom/discord/utilities/permissions/PermissionUtils;->can(ILjava/lang/Integer;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
:cond_4
|
||
|
const/4 v8, 0x1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_5
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
:goto_4
|
||
|
if-nez p1, :cond_6
|
||
|
|
||
|
if-eqz v3, :cond_7
|
||
|
|
||
|
:cond_6
|
||
|
iget-object p1, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v0, Lf/b/a/f/a$a;->a:Lf/b/a/f/a$a;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
:cond_7
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
const/16 v10, 0x9f
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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
|
||
|
|
||
|
|
||
|
# 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}, Ly/v/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 11
|
||
|
.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;->requireViewState()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/16 v10, 0xf7
|
||
|
|
||
|
move-object v5, p1
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public onCalculatedMaxUnexpandedCharThreshold(I)V
|
||
|
.locals 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()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 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
const/16 v10, 0xfb
|
||
|
|
||
|
move v4, p1
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 11
|
||
|
.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;
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
invoke-virtual {v1}, 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$d;
|
||
|
|
||
|
const v2, 0x7f120389
|
||
|
|
||
|
invoke-direct {v1, v2}, Lf/b/a/f/a$d;-><init>(I)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v2, Lf/b/a/f/a$a;->a:Lf/b/a/f/a$a;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
const/16 v10, 0x6f
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onContentDialogDismissed()V
|
||
|
.locals 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v1, Lf/b/a/f/a$b;->a:Lf/b/a/f/a$b;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()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/16 v10, 0xef
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()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 v6
|
||
|
|
||
|
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/16 v10, 0xef
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->g()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v2, Lf/b/a/f/a$b;->a:Lf/b/a/f/a$b;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v2, Lf/b/a/f/a$a;->a:Lf/b/a/f/a$a;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
:goto_0
|
||
|
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
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->g()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
xor-int/lit8 v9, v0, 0x1
|
||
|
|
||
|
const/16 v10, 0x7f
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()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, 0x1
|
||
|
|
||
|
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/16 v10, 0xfd
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v1, Lf/b/a/f/a$a;->a:Lf/b/a/f/a$a;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()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/16 v10, 0x7f
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
|
||
|
|
||
|
invoke-virtual {v1}, 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$d;
|
||
|
|
||
|
const v2, 0x7f120389
|
||
|
|
||
|
invoke-direct {v1, v2}, Lf/b/a/f/a$d;-><init>(I)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v2, Lf/b/a/f/a$a;->a:Lf/b/a/f/a$a;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
const/16 v10, 0x6f
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 11
|
||
|
.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 v0, 0x0
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->g()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
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/16 v10, 0x7f
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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
|
||
|
|
||
|
:cond_1
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public onInputTextAppended(Ljava/lang/String;)V
|
||
|
.locals 3
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
invoke-static {p0, p1, v0, v1, v0}, Lf/k/a/b/l1/e;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;Ljava/lang/String;Ljava/lang/Boolean;ILjava/lang/Object;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
const-string p1, "appendText"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public onInputTextChanged(Ljava/lang/String;Ljava/lang/Boolean;)V
|
||
|
.locals 11
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
if-eqz p1, :cond_3
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {p2, v2}, Ly/v/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
iget-object p2, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v2, Lf/b/a/f/a$b;->a:Lf/b/a/f/a$b;
|
||
|
|
||
|
invoke-virtual {p2, v2}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {p2, v2}, Ly/v/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
iget-object p2, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v2, Lf/b/a/f/a$a;->a:Lf/b/a/f/a$a;
|
||
|
|
||
|
invoke-virtual {p2, v2}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->e()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-ge p2, v2, :cond_2
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
:cond_2
|
||
|
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/16 v10, 0xfc
|
||
|
|
||
|
move-object v2, p1
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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_3
|
||
|
const-string p1, "inputText"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public onInputTextTouched(Landroid/view/MotionEvent;)Z
|
||
|
.locals 10
|
||
|
.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
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v0, Lf/b/a/f/a$b;->a:Lf/b/a/f/a$b;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-virtual {p0}, Lf/a/b/b0;->requireViewState()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Lcom/lytefast/flexinput/viewmodel/FlexInputState;
|
||
|
|
||
|
const/4 v1, 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/16 v9, 0x7f
|
||
|
|
||
|
invoke-static/range {v0 .. v9}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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}, Ly/v/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
|
||
|
|
||
|
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;
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->c()Ljava/util/List;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {p1, v0, v2}, 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
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
sget-object v5, Ly/q/p;->d:Ly/q/p;
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
const/16 v10, 0xe6
|
||
|
|
||
|
const-string v2, ""
|
||
|
|
||
|
invoke-static/range {v1 .. v10}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->a(Lcom/lytefast/flexinput/viewmodel/FlexInputState;Ljava/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 onShowDialog()V
|
||
|
.locals 2
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->eventSubject:Lrx/subjects/PublishSubject;
|
||
|
|
||
|
sget-object v1, Lf/b/a/f/a$a;->a:Lf/b/a/f/a$a;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
||
|
|
||
|
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$c;
|
||
|
|
||
|
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$c;-><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}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|