1251 lines
28 KiB
Smali
1251 lines
28 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}, Lz/u/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}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
const-string p1, "initialViewState"
|
||
|
|
||
|
invoke-static {p1}, Lz/u/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 12
|
||
|
|
||
|
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/models/PanelState;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
instance-of v3, v3, Lcom/discord/models/PanelState$Closed;
|
||
|
|
||
|
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/models/PanelState;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
instance-of v3, v3, Lcom/discord/models/PanelState$Closed;
|
||
|
|
||
|
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 p1
|
||
|
|
||
|
if-eqz p1, :cond_2
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
if-eqz p1, :cond_3
|
||
|
|
||
|
:goto_3
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_3
|
||
|
if-eqz v3, :cond_4
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_4
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
:goto_4
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
invoke-static {v0, v2}, Lcom/discord/utilities/permissions/PermissionUtils;->hasAccessWrite(Lcom/discord/models/domain/ModelChannel;Ljava/lang/Integer;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
move v8, v3
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_5
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
:goto_5
|
||
|
if-eqz v0, :cond_7
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_6
|
||
|
|
||
|
const v0, 0x8000
|
||
|
|
||
|
invoke-static {v0, v2}, Lcom/discord/utilities/permissions/PermissionUtils;->can(ILjava/lang/Integer;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_7
|
||
|
|
||
|
:cond_6
|
||
|
const/4 v9, 0x1
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
:cond_7
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
:goto_6
|
||
|
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, 0x13e
|
||
|
|
||
|
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
|
||
|
|
||
|
|
||
|
# 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;->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 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;->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/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
|
||
|
|
||
|
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$b;
|
||
|
|
||
|
const v2, 0x7f120386
|
||
|
|
||
|
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
|
||
|
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
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onContentDialogDismissed()V
|
||
|
.locals 12
|
||
|
.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 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;->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 v7
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
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 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;->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;->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 {v1}, 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;->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, 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;->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/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;->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$b;
|
||
|
|
||
|
const v2, 0x7f120386
|
||
|
|
||
|
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
|
||
|
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
|
||
|
|
||
|
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;->h()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/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
|
||
|
|
||
|
:cond_1
|
||
|
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;->requireViewState()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 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;->e()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}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public onInputTextChanged(Ljava/lang/String;Ljava/lang/Boolean;)V
|
||
|
.locals 12
|
||
|
.annotation build Landroidx/annotation/UiThread;
|
||
|
.end annotation
|
||
|
|
||
|
if-eqz p1, :cond_4
|
||
|
|
||
|
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;->e()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p1, v0}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p2, v0}, Lz/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->d()Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
:goto_0
|
||
|
move v2, p2
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->f()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-ge p2, v0, :cond_3
|
||
|
|
||
|
const/4 p2, 0x1
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_3
|
||
|
const/4 p2, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
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, 0x1f8
|
||
|
|
||
|
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_4
|
||
|
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;->requireViewState()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 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;
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/lytefast/flexinput/viewmodel/FlexInputState;->e()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
|
||
|
|
||
|
sget-object v6, Lz/q/o;->d:Lz/q/o;
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
const/16 v11, 0x1cc
|
||
|
|
||
|
const-string v3, ""
|
||
|
|
||
|
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
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onShowDialog()V
|
||
|
.locals 12
|
||
|
.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 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
|
||
|
|
||
|
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 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
|