2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreNavigation;
|
2019-02-04 20:05:16 +00:00
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "StoreNavigation.kt"
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/stores/StoreNavigation$DrawerAction;,
|
|
|
|
Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-02-04 20:08:30 +00:00
|
|
|
.field private final isAnyNavigationDrawerOpen:Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lrx/Observable<",
|
2019-02-04 20:05:16 +00:00
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.field private final navigationDrawerActionSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lrx/subjects/SerializedSubject<",
|
|
|
|
"Lcom/discord/stores/StoreNavigation$DrawerAction;",
|
|
|
|
"Lcom/discord/stores/StoreNavigation$DrawerAction;",
|
2019-02-04 20:05:16 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.field private final navigationDrawerIsLeftOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lrx/subjects/SerializedSubject<",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
"Ljava/lang/Boolean;",
|
2019-02-04 20:05:16 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.field private final navigationDrawerIsRightOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lrx/subjects/SerializedSubject<",
|
2019-02-04 20:05:16 +00:00
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.field private final stream:Lcom/discord/stores/StoreStream;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreStream;)V
|
|
|
|
.locals 2
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v0, "stream"
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreNavigation;->stream:Lcom/discord/stores/StoreStream;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance p1, Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->bJ(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v0, Lrx/subjects/Subject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsLeftOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance p1, Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->bJ(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v0, Lrx/subjects/Subject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsRightOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance p1, Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreNavigation$DrawerAction;->NOOP:Lcom/discord/stores/StoreNavigation$DrawerAction;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->bJ(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v0, Lrx/subjects/Subject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerActionSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsLeftOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast p1, Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsRightOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v0, Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v1, Lcom/discord/stores/StoreNavigation$isAnyNavigationDrawerOpen$1;->INSTANCE:Lcom/discord/stores/StoreNavigation$isAnyNavigationDrawerOpen$1;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v1, Lrx/functions/Func2;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p1, v0, v1}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p1}, Lrx/Observable;->DB()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreNavigation;->isAnyNavigationDrawerOpen:Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
2019-02-04 20:05:16 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static final synthetic access$displayConnectionErrorNotice(Lcom/discord/stores/StoreNavigation;)V
|
|
|
|
.locals 0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/stores/StoreNavigation;->displayConnectionErrorNotice()V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
2019-02-04 20:05:16 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static final synthetic access$isAnyNavigationDrawerOpen$p(Lcom/discord/stores/StoreNavigation;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p0, p0, Lcom/discord/stores/StoreNavigation;->isAnyNavigationDrawerOpen:Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method private final displayConnectionErrorNotice()V
|
|
|
|
.locals 10
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Lcom/discord/widgets/notice/WidgetNoticePopup;->Companion:Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v1, "CONNECTION_ISSUES"
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v2, Lcom/discord/stores/StoreNavigation$displayConnectionErrorNotice$1;->INSTANCE:Lcom/discord/stores/StoreNavigation$displayConnectionErrorNotice$1;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-object v9, v2
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v9, Lkotlin/jvm/functions/Function1;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-18 23:03:40 +00:00
|
|
|
const v2, 0x7f1203fa
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-18 23:03:40 +00:00
|
|
|
const v3, 0x7f1203fe
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-16 02:02:59 +00:00
|
|
|
const v4, 0x7f080326
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/16 v5, 0x1e
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-wide/32 v6, 0x1d4c0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v8, 0x1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual/range {v0 .. v9}, Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;->enqueue(Ljava/lang/String;IIIIJZLkotlin/jvm/functions/Function1;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static synthetic setNavigationDrawerAction$default(Lcom/discord/stores/StoreNavigation;Lcom/discord/stores/StoreNavigation$DrawerAction;Landroidx/drawerlayout/widget/DrawerLayout;ILjava/lang/Object;)V
|
|
|
|
.locals 0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
and-int/lit8 p3, p3, 0x2
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
if-eqz p3, :cond_0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 p2, 0x0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/stores/StoreNavigation;->setNavigationDrawerAction(Lcom/discord/stores/StoreNavigation$DrawerAction;Landroidx/drawerlayout/widget/DrawerLayout;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
2019-02-04 20:05:16 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getNavigationDrawerAction()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/stores/StoreNavigation$DrawerAction;",
|
2019-02-04 20:05:16 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerActionSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lcom/discord/app/g;->dx()Lrx/Observable$Transformer;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/subjects/SerializedSubject;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v1, "navigationDrawerActionSu\u2026onDistinctUntilChanged())"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-04 20:05:16 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public final getNavigationDrawerIsLeftOpen()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/lang/Boolean;",
|
2019-02-04 20:05:16 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsLeftOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lcom/discord/app/g;->dx()Lrx/Observable$Transformer;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/subjects/SerializedSubject;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v1, "navigationDrawerIsLeftOp\u2026onDistinctUntilChanged())"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-04 20:05:16 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public final getNavigationDrawerIsRightOpen()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
2019-02-04 20:08:30 +00:00
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/lang/Boolean;",
|
2019-02-04 20:05:16 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsRightOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lcom/discord/app/g;->dx()Lrx/Observable$Transformer;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/subjects/SerializedSubject;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v1, "navigationDrawerIsRightO\u2026onDistinctUntilChanged())"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-04 20:05:16 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public final init(Landroid/app/Application;)V
|
|
|
|
.locals 10
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v0, "application"
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance v0, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreNavigation;->stream:Lcom/discord/stores/StoreStream;
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks;-><init>(Lcom/discord/stores/StoreStream;)V
|
|
|
|
|
|
|
|
check-cast v0, Landroid/app/Application$ActivityLifecycleCallbacks;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getAuthentication()Lcom/discord/stores/StoreAuthentication;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v1, "StoreStream\n .getAuthentication()"
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreAuthentication;->isAuthed()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->get()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance v2, Lcom/discord/utilities/networking/NetworkMonitor;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast p1, Landroid/content/Context;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct {v2, p1}, Lcom/discord/utilities/networking/NetworkMonitor;-><init>(Landroid/content/Context;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/utilities/networking/NetworkMonitor;->isStablyConnected()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreNavigation;->stream:Lcom/discord/stores/StoreStream;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object v2, v2, Lcom/discord/stores/StoreStream;->gatewaySocket:Lcom/discord/stores/StoreGatewayConnection;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreGatewayConnection;->getConnected()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v3, Lcom/discord/stores/StoreNavigation$init$1;->INSTANCE:Lcom/discord/stores/StoreNavigation$init$1;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v3, Lrx/functions/Func4;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {v0, v1, p1, v2, v3}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p1}, Lrx/Observable;->DB()Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreNavigation$init$2;->INSTANCE:Lcom/discord/stores/StoreNavigation$init$2;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v0, Lrx/functions/b;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->g(Lrx/functions/b;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v0, "Observable.combineLatest\u2026y()\n }\n }"
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationBuffered(Lrx/Observable;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance p1, Lcom/discord/stores/StoreNavigation$init$3;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-direct {p1, p0}, Lcom/discord/stores/StoreNavigation$init$3;-><init>(Lcom/discord/stores/StoreNavigation;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-object v7, p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v7, Lkotlin/jvm/functions/Function1;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v3, 0x0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v4, 0x0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v5, 0x0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v6, 0x0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/16 v8, 0x1e
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v9, 0x0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
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
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreNavigation;->stream:Lcom/discord/stores/StoreStream;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p1, p1, Lcom/discord/stores/StoreStream;->users:Lcom/discord/stores/StoreUser;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v0, 0x1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/stores/StoreUser;->getMe(Z)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreNavigation$init$4;->INSTANCE:Lcom/discord/stores/StoreNavigation$init$4;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v0, Lrx/functions/b;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreNavigation$init$5;->INSTANCE:Lcom/discord/stores/StoreNavigation$init$5;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
check-cast v0, Lrx/functions/b;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->g(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lcom/discord/app/g;->dx()Lrx/Observable$Transformer;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
sget-object v0, Lcom/discord/app/g;->tC:Lcom/discord/app/g;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreNavigation$init$6;->INSTANCE:Lcom/discord/stores/StoreNavigation$init$6;
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
const-string v2, "Unclaimed"
|
|
|
|
|
|
|
|
const/16 v6, 0x3c
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/app/g;->a(Lkotlin/jvm/functions/Function1;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroid/content/Context;I)Lrx/Observable$Transformer;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public final setNavigationDrawerAction(Lcom/discord/stores/StoreNavigation$DrawerAction;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v1, 0x2
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p0, p1, v0, v1, v0}, Lcom/discord/stores/StoreNavigation;->setNavigationDrawerAction$default(Lcom/discord/stores/StoreNavigation;Lcom/discord/stores/StoreNavigation$DrawerAction;Landroidx/drawerlayout/widget/DrawerLayout;ILjava/lang/Object;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public final setNavigationDrawerAction(Lcom/discord/stores/StoreNavigation$DrawerAction;Landroidx/drawerlayout/widget/DrawerLayout;)V
|
|
|
|
.locals 1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v0, "actionType"
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
if-nez p2, :cond_0
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerActionSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p2, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreNavigation$WhenMappings;->$EnumSwitchMapping$0:[I
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreNavigation$DrawerAction;->ordinal()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
aget p1, v0, p1
|
|
|
|
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
invoke-virtual {p2}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawers()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
const p1, 0x800003
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->openDrawer(I)V
|
|
|
|
|
2019-02-04 20:05:16 +00:00
|
|
|
:goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerActionSubject:Lrx/subjects/SerializedSubject;
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/stores/StoreNavigation$DrawerAction;->NOOP:Lcom/discord/stores/StoreNavigation$DrawerAction;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
|
|
|
|
|
2019-02-04 20:05:16 +00:00
|
|
|
return-void
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
nop
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x1
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public final setNavigationDrawerLeftOpen(Z)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsLeftOpenSubject:Lrx/subjects/SerializedSubject;
|
2019-02-04 20:05:16 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v0, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
|
2019-02-04 20:05:16 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setNavigationDrawerRightOpen(Z)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreNavigation;->navigationDrawerIsRightOpenSubject:Lrx/subjects/SerializedSubject;
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:05:16 +00:00
|
|
|
.end method
|