2020-07-14 22:43:59 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;
|
|
|
|
.super Lf/a/b/q0;
|
|
|
|
.source "GifSearchViewModel.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$ViewState;,
|
|
|
|
Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState;,
|
|
|
|
Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$Factory;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lf/a/b/q0<",
|
|
|
|
"Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$ViewState;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final messageManager:Lcom/discord/widgets/chat/MessageManager;
|
|
|
|
|
|
|
|
.field public final searchSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final storeAnalytics:Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
.field public final storeStateObservable:Lrx/Observable;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreGifPicker;Lrx/Observable;Lrx/subjects/BehaviorSubject;Lcom/discord/widgets/chat/MessageManager;Lcom/discord/stores/StoreAnalytics;)V
|
|
|
|
.locals 10
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/stores/StoreGifPicker;",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState;",
|
|
|
|
">;",
|
|
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;",
|
|
|
|
"Lcom/discord/widgets/chat/MessageManager;",
|
|
|
|
"Lcom/discord/stores/StoreAnalytics;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lf/a/b/q0;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->storeStateObservable:Lrx/Observable;
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->searchSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->messageManager:Lcom/discord/widgets/chat/MessageManager;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->storeAnalytics:Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifPicker;->fetchGifTrendingSearchTerms()V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->storeStateObservable:Lrx/Observable;
|
|
|
|
|
|
|
|
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/gifpicker/GifSearchViewModel;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
new-instance v7, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$1;
|
|
|
|
|
|
|
|
invoke-direct {v7, p0}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$1;-><init>(Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;)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, "storeAnalytics"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "messageManager"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "searchSubject"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "storeStateObservable"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "storeGifPicker"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Lcom/discord/stores/StoreGifPicker;Lrx/Observable;Lrx/subjects/BehaviorSubject;Lcom/discord/widgets/chat/MessageManager;Lcom/discord/stores/StoreAnalytics;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
and-int/lit8 p6, p6, 0x10
|
|
|
|
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
|
|
|
|
sget-object p5, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p5}, Lcom/discord/stores/StoreStream$Companion;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
move-result-object p5
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v5, p5
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
move-object v2, p2
|
|
|
|
|
|
|
|
move-object v3, p3
|
|
|
|
|
|
|
|
move-object v4, p4
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;-><init>(Lcom/discord/stores/StoreGifPicker;Lrx/Observable;Lrx/subjects/BehaviorSubject;Lcom/discord/widgets/chat/MessageManager;Lcom/discord/stores/StoreAnalytics;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$handleStoreState(Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->handleStoreState(Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final handleStoreState(Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState;)V
|
2020-07-22 00:04:40 +00:00
|
|
|
.locals 6
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState;->getTrendingSearchTerms()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
instance-of v2, p1, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState$SearchResults;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz v2, :cond_5
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState$SearchResults;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState$SearchResults;->getGifs()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/16 v4, 0xa
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v1, v4}, Lf/i/a/b/i1/e;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-result v4
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(I)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-result v4
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz v4, :cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-result-object v4
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
check-cast v4, Lcom/discord/models/gifpicker/dto/ModelGif;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
new-instance v5, Lcom/discord/widgets/chat/input/gifpicker/GifAdapterItem$GifItem;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {v5, v4}, Lcom/discord/widgets/chat/input/gifpicker/GifAdapterItem$GifItem;-><init>(Lcom/discord/models/gifpicker/dto/ModelGif;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-interface {v3, v5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState$SearchResults;->getSuggested()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-result v3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v4, 0x1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v5, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-lez v3, :cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v3, 0x1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v3, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$StoreState$SearchResults;->getSuggested()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v4, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
:goto_2
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz v3, :cond_3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const p1, 0x7f120839
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const p1, 0x7f120f04
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
goto :goto_3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
:cond_4
|
2020-07-22 00:04:40 +00:00
|
|
|
const p1, 0x7f120f03
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
goto :goto_3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
:cond_5
|
2020-07-22 00:04:40 +00:00
|
|
|
const p1, 0x7f121387
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:goto_3
|
|
|
|
new-instance v3, Lcom/discord/widgets/chat/input/gifpicker/GifAdapterItem$SuggestedTermsItem;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {v3, v1, p1}, Lcom/discord/widgets/chat/input/gifpicker/GifAdapterItem$SuggestedTermsItem;-><init>(Ljava/util/List;I)V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
new-instance p1, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$ViewState;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {p1, v0}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$ViewState;-><init>(Ljava/util/List;)V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz v2, :cond_6
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->storeAnalytics:Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/analytics/SearchType;->GIF:Lcom/discord/utilities/analytics/SearchType;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$ViewState;->getGifCount()I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/stores/StoreAnalytics;->trackSearchResultViewed(Lcom/discord/utilities/analytics/SearchType;I)V
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_6
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, p1}, Lf/a/b/q0;->updateViewState(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final selectGif(Lcom/discord/widgets/chat/input/gifpicker/GifAdapterItem$GifItem;)V
|
2020-07-22 00:04:40 +00:00
|
|
|
.locals 13
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz p1, :cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lf/a/b/q0;->getViewState()Ljava/lang/Object;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-result-object v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
check-cast v0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$ViewState;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->storeAnalytics:Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/utilities/analytics/SearchType;->GIF:Lcom/discord/utilities/analytics/SearchType;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel$ViewState;->getGifCount()I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual {v1, v2, v0}, Lcom/discord/stores/StoreAnalytics;->trackSearchResultSelected(Lcom/discord/utilities/analytics/SearchType;I)V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_0
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->messageManager:Lcom/discord/widgets/chat/MessageManager;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/gifpicker/GifAdapterItem$GifItem;->getGif()Lcom/discord/models/gifpicker/dto/ModelGif;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/gifpicker/dto/ModelGif;->getTenorGifUrl()Ljava/lang/String;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/16 v11, 0x7e
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v12, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static/range {v3 .. v12}, Lcom/discord/widgets/chat/MessageManager;->sendMessage$default(Lcom/discord/widgets/chat/MessageManager;Ljava/lang/String;Ljava/util/List;Lcom/discord/widgets/chat/MessageManager$AttachmentsRequest;Ljava/lang/Long;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
const-string p1, "gifItem"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-07-14 22:43:59 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setSearchText(Ljava/lang/String;)V
|
2020-07-22 00:04:40 +00:00
|
|
|
.locals 1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/gifpicker/GifSearchViewModel;->searchSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
const-string p1, "searchText"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|