apkfuckery/com.discord/smali/f/a/a/t.smali

300 lines
7.4 KiB
Smali
Raw Normal View History

2020-04-17 17:35:24 +00:00
.class public final Lf/a/a/t;
.super Lf/a/b/b0;
2020-04-14 11:33:38 +00:00
.source "WidgetUrgentMessageDialogViewModel.kt"
# annotations
2020-04-16 17:34:59 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-04-17 17:35:24 +00:00
Lf/a/a/t$e;,
Lf/a/a/t$d;,
Lf/a/a/t$b;,
Lf/a/a/t$c;
2020-04-16 17:34:59 +00:00
}
.end annotation
2020-04-14 11:33:38 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-04-17 17:35:24 +00:00
"Lf/a/b/b0<",
"Lf/a/a/t$e;",
2020-04-16 17:34:59 +00:00
">;"
2020-04-14 11:33:38 +00:00
}
.end annotation
2020-04-16 17:34:59 +00:00
# instance fields
.field public final d:Lrx/subjects/PublishSubject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/PublishSubject<",
2020-04-17 17:35:24 +00:00
"Lf/a/a/t$b;",
2020-04-16 17:34:59 +00:00
">;"
}
.end annotation
.end field
.field public final e:Lcom/discord/utilities/rest/RestAPI;
2020-04-14 11:33:38 +00:00
# direct methods
2020-04-16 17:34:59 +00:00
.method public constructor <init>(Lcom/discord/utilities/rest/RestAPI;Lrx/Observable;)V
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/utilities/rest/RestAPI;",
"Lrx/Observable<",
2020-04-17 17:35:24 +00:00
"Lf/a/a/t$d;",
2020-04-16 17:34:59 +00:00
">;)V"
}
.end annotation
2020-04-14 11:33:38 +00:00
2020-04-16 17:34:59 +00:00
const/4 v0, 0x0
2020-04-14 11:33:38 +00:00
2020-04-16 17:34:59 +00:00
if-eqz p1, :cond_1
2020-04-14 11:33:38 +00:00
2020-04-16 17:34:59 +00:00
if-eqz p2, :cond_0
2020-04-14 11:33:38 +00:00
2020-04-17 17:35:24 +00:00
const/4 v1, 0x1
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {p0, v0, v1, v0}, Lf/a/b/b0;-><init>(Ljava/lang/Object;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
iput-object p1, p0, Lf/a/a/t;->e:Lcom/discord/utilities/rest/RestAPI;
2020-04-16 17:34:59 +00:00
invoke-static {p2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object p1
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;
2020-04-14 11:33:38 +00:00
2020-04-16 17:34:59 +00:00
move-result-object v1
2020-04-14 11:33:38 +00:00
2020-04-17 17:35:24 +00:00
const-class v2, Lf/a/a/t;
2020-04-16 17:34:59 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
2020-04-17 17:35:24 +00:00
new-instance v7, Lf/a/a/t$a;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {v7, p0}, Lf/a/a/t$a;-><init>(Lf/a/a/t;)V
2020-04-16 17:34:59 +00:00
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
invoke-static {}, Lrx/subjects/PublishSubject;->o()Lrx/subjects/PublishSubject;
move-result-object p1
2020-04-17 17:35:24 +00:00
iput-object p1, p0, Lf/a/a/t;->d:Lrx/subjects/PublishSubject;
2020-04-14 11:33:38 +00:00
return-void
2020-04-16 17:34:59 +00:00
:cond_0
const-string p1, "storeObservable"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2020-04-16 17:34:59 +00:00
throw v0
:cond_1
const-string p1, "restAPI"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2020-04-16 17:34:59 +00:00
throw v0
2020-04-14 11:33:38 +00:00
.end method
# virtual methods
2020-04-16 17:34:59 +00:00
.method public final a(Landroid/content/Context;)V
.locals 16
.annotation build Landroidx/annotation/MainThread;
.end annotation
move-object/from16 v0, p0
move-object/from16 v1, p1
2020-04-17 17:35:24 +00:00
if-eqz v1, :cond_1
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getChannelsSelected()Lcom/discord/stores/StoreChannelsSelected;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
move-result-object v3
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
const-wide v4, 0x8efc0ce7f420001L
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {v3, v1, v4, v5}, Lcom/discord/stores/StoreChannelsSelected;->findAndSetDirectMessage(Landroid/content/Context;J)V
2020-04-17 16:36:30 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual/range {p0 .. p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
move-result-object v1
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
check-cast v1, Lf/a/a/t$e;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
if-eqz v1, :cond_0
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
iget-object v3, v1, Lf/a/a/t$e;->a:Ljava/lang/Integer;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
if-eqz v3, :cond_0
2020-04-17 16:36:30 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
2020-04-17 16:36:30 +00:00
2020-04-17 17:35:24 +00:00
move-result v3
2020-04-17 16:36:30 +00:00
2020-04-17 17:35:24 +00:00
and-int/lit16 v3, v3, -0x2001
2020-04-16 17:34:59 +00:00
new-instance v15, Lcom/discord/restapi/RestAPIParams$UserInfo;
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
2020-04-17 17:35:24 +00:00
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-04-16 17:34:59 +00:00
move-result-object v13
const/16 v14, 0xff
2020-04-17 17:35:24 +00:00
const/4 v3, 0x0
2020-04-16 17:34:59 +00:00
move-object v4, v15
move-object v2, v15
2020-04-17 17:35:24 +00:00
move-object v15, v3
2020-04-16 17:34:59 +00:00
invoke-direct/range {v4 .. v15}, Lcom/discord/restapi/RestAPIParams$UserInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-04-17 17:35:24 +00:00
iget-object v3, v1, Lf/a/a/t$e;->a:Ljava/lang/Integer;
2020-04-16 17:34:59 +00:00
const/4 v4, 0x1
2020-04-17 17:35:24 +00:00
invoke-virtual {v1, v3, v4}, Lf/a/a/t$e;->a(Ljava/lang/Integer;Z)Lf/a/a/t$e;
2020-04-16 17:34:59 +00:00
move-result-object v1
2020-04-17 17:35:24 +00:00
invoke-virtual {v0, v1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
iget-object v1, v0, Lf/a/a/t;->e:Lcom/discord/utilities/rest/RestAPI;
2020-04-16 17:34:59 +00:00
invoke-virtual {v1, v2}, Lcom/discord/utilities/rest/RestAPI;->patchUser(Lcom/discord/restapi/RestAPIParams$UserInfo;)Lrx/Observable;
move-result-object v1
const/4 v2, 0x0
const/4 v3, 0x0
invoke-static {v1, v2, v4, v3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn$default(Lrx/Observable;ZILjava/lang/Object;)Lrx/Observable;
move-result-object v1
const/4 v2, 0x2
invoke-static {v1, v0, v3, v2, v3}, 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
2020-04-17 17:35:24 +00:00
new-instance v2, Lf/a/a/t$f;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {v2, v0}, Lf/a/a/t$f;-><init>(Lf/a/a/t;)V
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
new-instance v3, Lf/a/a/t$g;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {v3, v0}, Lf/a/a/t$g;-><init>(Lf/a/a/t;)V
2020-04-16 17:34:59 +00:00
invoke-virtual {v1, v2, v3}, Lrx/Observable;->a(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;
2020-04-17 17:35:24 +00:00
:cond_0
2020-04-16 17:34:59 +00:00
return-void
2020-04-17 17:35:24 +00:00
:cond_1
2020-04-16 17:34:59 +00:00
const-string v1, "context"
2020-04-17 19:35:49 +00:00
invoke-static {v1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2020-04-16 17:34:59 +00:00
const/4 v1, 0x0
throw v1
.end method
2020-04-17 17:35:24 +00:00
.method public final a(Lf/a/a/t$d;)V
2020-04-14 11:33:38 +00:00
.locals 2
2020-04-16 17:34:59 +00:00
.annotation build Landroidx/annotation/MainThread;
.end annotation
2020-04-17 17:35:24 +00:00
iget-object p1, p1, Lf/a/a/t$d;->a:Lcom/discord/models/domain/ModelUser;
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {p0}, Lf/a/b/b0;->getViewState()Ljava/lang/Object;
2020-04-16 17:34:59 +00:00
move-result-object v0
2020-04-14 11:33:38 +00:00
2020-04-17 17:35:24 +00:00
check-cast v0, Lf/a/a/t$e;
2020-04-14 11:33:38 +00:00
2020-04-17 17:35:24 +00:00
if-nez v0, :cond_0
2020-04-16 17:34:59 +00:00
const/4 v0, 0x0
goto :goto_0
:cond_0
2020-04-17 17:35:24 +00:00
iget-boolean v0, v0, Lf/a/a/t$e;->b:Z
2020-04-16 17:34:59 +00:00
:goto_0
2020-04-17 17:35:24 +00:00
new-instance v1, Lf/a/a/t$e;
2020-04-16 17:34:59 +00:00
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getFlags()Ljava/lang/Integer;
move-result-object p1
2020-04-17 17:35:24 +00:00
invoke-direct {v1, p1, v0}, Lf/a/a/t$e;-><init>(Ljava/lang/Integer;Z)V
2020-04-16 17:34:59 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {p0, v1}, Lf/a/b/b0;->updateViewState(Ljava/lang/Object;)V
2020-04-16 17:34:59 +00:00
return-void
.end method
.method public final observeEvents()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
2020-04-17 17:35:24 +00:00
"Lf/a/a/t$b;",
2020-04-16 17:34:59 +00:00
">;"
}
.end annotation
2020-04-14 11:33:38 +00:00
2020-04-17 17:35:24 +00:00
iget-object v0, p0, Lf/a/a/t;->d:Lrx/subjects/PublishSubject;
2020-04-14 11:33:38 +00:00
2020-04-16 17:34:59 +00:00
const-string v1, "eventSubject"
2020-04-14 11:33:38 +00:00
2020-04-17 19:35:49 +00:00
invoke-static {v0, v1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-04-14 11:33:38 +00:00
return-object v0
.end method