111 lines
3.6 KiB
Smali
111 lines
3.6 KiB
Smali
.class public final Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetChatListStickerModel.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final get(Landroid/content/Context;Lcom/discord/models/sticker/dto/ModelSticker;)Lrx/Observable;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Lcom/discord/models/sticker/dto/ModelSticker;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sticker"
|
|
|
|
invoke-static {p2, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/dsti/StickerUtils;->INSTANCE:Lcom/discord/utilities/dsti/StickerUtils;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/discord/utilities/dsti/StickerUtils;->fetchSticker(Landroid/content/Context;Lcom/discord/models/sticker/dto/ModelSticker;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p1, v0, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn$default(Lrx/Observable;ZILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getStickerAnimationSettings()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lt0/l/e/j;
|
|
|
|
invoke-direct {v1, p2}, Lt0/l/e/j;-><init>(Ljava/lang/Object;)V
|
|
|
|
sget-object p2, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$Companion$get$1;->INSTANCE:Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$Companion$get$1;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
new-instance v2, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$sam$rx_functions_Func3$0;
|
|
|
|
invoke-direct {v2, p2}, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$sam$rx_functions_Func3$0;-><init>(Lkotlin/jvm/functions/Function3;)V
|
|
|
|
move-object p2, v2
|
|
|
|
:cond_0
|
|
check-cast p2, Lrx/functions/Func3;
|
|
|
|
invoke-static {p1, v0, v1, p2}, Lrx/Observable;->i(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func3;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "Observable\n .\u2026tickerModel\n )"
|
|
|
|
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
.end method
|