2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "GifPickerViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Factory"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-22 00:04:40 +00:00
|
|
|
.field public final observationDeck:Lcom/discord/stores/updates/ObservationDeck;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final storeGifPicker:Lcom/discord/stores/StoreGifPicker;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v1, 0x3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {p0, v0, v0, v1, v0}, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;-><init>(Lcom/discord/stores/StoreGifPicker;Lcom/discord/stores/updates/ObservationDeck;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreGifPicker;Lcom/discord/stores/updates/ObservationDeck;)V
|
|
|
|
.locals 1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;->storeGifPicker:Lcom/discord/stores/StoreGifPicker;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;->observationDeck:Lcom/discord/stores/updates/ObservationDeck;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-22 00:04:40 +00:00
|
|
|
const-string p1, "observationDeck"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
throw v0
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_1
|
|
|
|
const-string p1, "storeGifPicker"
|
|
|
|
|
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
.method public synthetic constructor <init>(Lcom/discord/stores/StoreGifPicker;Lcom/discord/stores/updates/ObservationDeck;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
and-int/lit8 p4, p3, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz p4, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getGifPicker()Lcom/discord/stores/StoreGifPicker;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-22 00:04:40 +00:00
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/updates/ObservationDeckProvider;->get()Lcom/discord/stores/updates/ObservationDeck;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;-><init>(Lcom/discord/stores/StoreGifPicker;Lcom/discord/stores/updates/ObservationDeck;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
.method public static final synthetic access$getStoreGifPicker$p(Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;)Lcom/discord/stores/StoreGifPicker;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;->storeGifPicker:Lcom/discord/stores/StoreGifPicker;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
2020-07-22 00:04:40 +00:00
|
|
|
.locals 8
|
2020-07-08 16:44:49 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;->storeGifPicker:Lcom/discord/stores/StoreGifPicker;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;->observationDeck:Lcom/discord/stores/updates/ObservationDeck;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v3, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v2, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
new-array v2, v2, [Lcom/discord/stores/updates/ObservationDeck$UpdateSource;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
aput-object v0, v2, v4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v4, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
new-instance v5, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory$create$1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {v5, p0}, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory$create$1;-><init>(Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel$Factory;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v6, 0x4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v7}, Lcom/discord/stores/updates/ObservationDeck;->connectRx$default(Lcom/discord/stores/updates/ObservationDeck;[Lcom/discord/stores/updates/ObservationDeck$UpdateSource;ZLrx/Emitter$BackpressureMode;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {p1, v0, v1}, Lcom/discord/widgets/chat/input/gifpicker/GifPickerViewModel;-><init>(Lcom/discord/stores/StoreGifPicker;Lrx/Observable;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "modelClass"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|