2020-07-25 00:57:58 +00:00
|
|
|
.class public abstract Lf/a/b/o0;
|
|
|
|
.super Landroidx/lifecycle/ViewModel;
|
|
|
|
.source "AppViewModel.kt"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
# interfaces
|
2020-07-25 00:57:58 +00:00
|
|
|
.implements Lcom/discord/app/AppComponent;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-25 00:57:58 +00:00
|
|
|
"<V:",
|
2020-07-14 22:43:59 +00:00
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
2020-07-25 00:57:58 +00:00
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
"Lcom/discord/app/AppComponent;"
|
2020-07-08 16:44:49 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-25 00:57:58 +00:00
|
|
|
.field public final paused:Lrx/subjects/Subject;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/subjects/Subject<",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final viewStateSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
|
|
"TV;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1, v0}, Lf/a/b/o0;-><init>(Ljava/lang/Object;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Ljava/lang/Object;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TV;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/lifecycle/ViewModel;-><init>()V
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-static {}, Lrx/subjects/BehaviorSubject;->g0()Lrx/subjects/BehaviorSubject;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/a/b/o0;->viewStateSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-static {}, Lrx/subjects/PublishSubject;->g0()Lrx/subjects/PublishSubject;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "PublishSubject.create()"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/a/b/o0;->paused:Lrx/subjects/Subject;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lf/a/b/o0;->viewStateSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Ljava/lang/Object;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
and-int/lit8 p2, p2, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
if-eqz p2, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0, p1}, Lf/a/b/o0;-><init>(Ljava/lang/Object;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public getPaused()Lrx/subjects/Subject;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/subjects/Subject<",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Lf/a/b/o0;->paused:Lrx/subjects/Subject;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public final getViewState()Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TV;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-object v0, p0, Lf/a/b/o0;->viewStateSubject:Lrx/subjects/BehaviorSubject;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const-string/jumbo v1, "viewStateSubject"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v0}, Lrx/subjects/BehaviorSubject;->j0()Ljava/lang/Object;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-object v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public modifyPendingViewState(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TV;TV;)TV;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
return-object p2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final observeViewState()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"TV;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Lf/a/b/o0;->viewStateSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
|
|
|
const-string/jumbo v1, "viewStateSubject"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onCleared()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroidx/lifecycle/ViewModel;->onCleared()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lf/a/b/o0;->getPaused()Lrx/subjects/Subject;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-interface {v0, v1}, Lr0/g;->onNext(Ljava/lang/Object;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final requireViewState()Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TV;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lf/a/b/o0;->getViewState()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-object v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
:cond_0
|
|
|
|
invoke-static {}, Lj0/n/c/h;->throwNpe()V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const/4 v0, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public updateViewState(Ljava/lang/Object;)V
|
|
|
|
.locals 1
|
|
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TV;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lf/a/b/o0;->getViewState()Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p0, v0, p1}, Lf/a/b/o0;->modifyPendingViewState(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
move-result-object p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
iget-object v0, p0, Lf/a/b/o0;->viewStateSubject:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|