811 lines
23 KiB
Smali
811 lines
23 KiB
Smali
.class public final Lcom/discord/utilities/rx/ObservableExtensionsKt;
|
|
.super Ljava/lang/Object;
|
|
.source "ObservableExtensions.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final appSubscribe(Lrx/Observable;Landroid/content/Context;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;",
|
|
"Landroid/content/Context;",
|
|
"Ljava/lang/String;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lrx/Subscription;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-TT;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/discord/utilities/error/Error;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$appSubscribe"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "errorTag"
|
|
|
|
invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "onNext"
|
|
|
|
invoke-static {p4, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "onCompleted"
|
|
|
|
invoke-static {p6, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
new-instance p1, Lcom/discord/utilities/rx/ObservableExtensionsKt$sam$rx_functions_Action1$0;
|
|
|
|
invoke-direct {p1, p4}, Lcom/discord/utilities/rx/ObservableExtensionsKt$sam$rx_functions_Action1$0;-><init>(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
new-instance p4, Lcom/discord/utilities/rx/ObservableExtensionsKt$appSubscribe$subscription$1;
|
|
|
|
invoke-direct {p4, p2, p5, v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt$appSubscribe$subscription$1;-><init>(Ljava/lang/String;Lkotlin/jvm/functions/Function1;Ljava/lang/ref/WeakReference;)V
|
|
|
|
new-instance p2, Lcom/discord/utilities/rx/ObservableExtensionsKt$sam$rx_functions_Action0$0;
|
|
|
|
invoke-direct {p2, p6}, Lcom/discord/utilities/rx/ObservableExtensionsKt$sam$rx_functions_Action0$0;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
new-instance p5, Ll0/l/e/b;
|
|
|
|
invoke-direct {p5, p1, p4, p2}, Ll0/l/e/b;-><init>(Lrx/functions/Action1;Lrx/functions/Action1;Lrx/functions/Action0;)V
|
|
|
|
invoke-virtual {p0, p5}, Lrx/Observable;->Q(Lrx/Subscriber;)Lrx/Subscription;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const-string/jumbo p1, "subscription"
|
|
|
|
invoke-static {p0, p1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p3, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lkotlin/Unit;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final appSubscribe(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Landroid/content/Context;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lrx/Subscription;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/discord/utilities/error/Error;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-TT;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$appSubscribe"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "errorClass"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "onCompleted"
|
|
|
|
invoke-static {p5, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "onNext"
|
|
|
|
invoke-static {p6, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string p1, "errorClass.simpleName"
|
|
|
|
invoke-static {v3, p1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
move-object v1, p0
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v4, p3
|
|
|
|
move-object v5, p6
|
|
|
|
move-object v6, p4
|
|
|
|
move-object v7, p5
|
|
|
|
invoke-static/range {v1 .. v7}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe(Lrx/Observable;Landroid/content/Context;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic appSubscribe$default(Lrx/Observable;Landroid/content/Context;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V
|
|
.locals 9
|
|
|
|
and-int/lit8 v0, p7, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v3, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v3, p1
|
|
|
|
:goto_0
|
|
and-int/lit8 v0, p7, 0x4
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v5, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object v5, p3
|
|
|
|
:goto_1
|
|
and-int/lit8 v0, p7, 0x10
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
move-object v7, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object v7, p5
|
|
|
|
:goto_2
|
|
and-int/lit8 v0, p7, 0x20
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
sget-object v0, Lcom/discord/utilities/rx/ObservableExtensionsKt$appSubscribe$2;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$appSubscribe$2;
|
|
|
|
move-object v8, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v8, p6
|
|
|
|
:goto_3
|
|
move-object v2, p0
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v6, p4
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe(Lrx/Observable;Landroid/content/Context;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic 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
|
|
.locals 9
|
|
|
|
and-int/lit8 v0, p7, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v4, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v4, p2
|
|
|
|
:goto_0
|
|
and-int/lit8 v0, p7, 0x4
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v5, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object v5, p3
|
|
|
|
:goto_1
|
|
and-int/lit8 v0, p7, 0x8
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
move-object v6, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object v6, p4
|
|
|
|
:goto_2
|
|
and-int/lit8 v0, p7, 0x10
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
sget-object v0, Lcom/discord/utilities/rx/ObservableExtensionsKt$appSubscribe$1;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$appSubscribe$1;
|
|
|
|
move-object v7, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v7, p5
|
|
|
|
:goto_3
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v8, p6
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;",
|
|
"Lcom/discord/app/AppComponent;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$bindToComponentLifecycle"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "appComponent"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1}, Lcom/discord/app/AppComponent;->getUnsubscribeSignal()Lrx/subjects/Subject;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->W(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
instance-of v0, p1, Landroidx/fragment/app/Fragment;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Lcom/discord/utilities/rx/ObservableExtensionsKt$bindToComponentLifecycle$$inlined$let$lambda$1;
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt$bindToComponentLifecycle$$inlined$let$lambda$1;-><init>(Lcom/discord/app/AppComponent;)V
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->v(Ll0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_0
|
|
const-string/jumbo p1, "takeUntil(appComponent.u\u2026ble\n }\n }"
|
|
|
|
invoke-static {p0, p1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final computationBuffered(Lrx/Observable;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$computationBuffered"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lrx/Observable;->H()Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {}, Ll0/p/a;->a()Lrx/Scheduler;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->T(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {}, Ll0/p/a;->a()Lrx/Scheduler;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->G(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "onBackpressureBuffer()\n \u2026Schedulers.computation())"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$computationLatest"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Lrx/Observable;->I()Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {}, Ll0/p/a;->a()Lrx/Scheduler;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->T(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {}, Ll0/p/a;->a()Lrx/Scheduler;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->G(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "onBackpressureLatest()\n \u2026Schedulers.computation())"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final filterIs(Lrx/Observable;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"*>;)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$filterIs"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v0, "This function has a reified type parameter and thus can only be inlined at compilation time, not called directly."
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final synthetic filterNull(Lrx/Observable;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$filterNull"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->v(Ll0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object v0, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "filter { it != null }.map { it!! }"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final leadingEdgeThrottle(Lrx/Observable;JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$leadingEdgeThrottle"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string/jumbo v0, "timeUnit"
|
|
|
|
invoke-static {p3, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/utilities/rx/LeadingEdgeThrottle;
|
|
|
|
invoke-direct {v0, p1, p2, p3}, Lcom/discord/utilities/rx/LeadingEdgeThrottle;-><init>(JLjava/util/concurrent/TimeUnit;)V
|
|
|
|
new-instance p1, Ll0/l/a/u;
|
|
|
|
iget-object p0, p0, Lrx/Observable;->d:Lrx/Observable$a;
|
|
|
|
invoke-direct {p1, p0, v0}, Ll0/l/a/u;-><init>(Lrx/Observable$a;Lrx/Observable$b;)V
|
|
|
|
invoke-static {p1}, Lrx/Observable;->d0(Lrx/Observable$a;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "lift(LeadingEdgeThrottle\u2026indowDuration, timeUnit))"
|
|
|
|
invoke-static {p0, p1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final restSubscribeOn(Lrx/Observable;Z)Lrx/Observable;
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;Z)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$restSubscribeOn"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Ll0/p/a;->d()Lrx/Scheduler;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->T(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sget-object v1, Lcom/discord/restapi/utils/RetryWithDelay;->INSTANCE:Lcom/discord/restapi/utils/RetryWithDelay;
|
|
|
|
const-string p0, "observable"
|
|
|
|
invoke-static {v2, p0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x7
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static/range {v1 .. v8}, Lcom/discord/restapi/utils/RetryWithDelay;->restRetry$default(Lcom/discord/restapi/utils/RetryWithDelay;Lrx/Observable;JLjava/lang/Integer;Ljava/lang/Integer;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_0
|
|
const-string/jumbo p0, "subscribeOn(Schedulers.i\u2026 observable\n }\n }"
|
|
|
|
invoke-static {v2, p0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public static synthetic restSubscribeOn$default(Lrx/Observable;ZILjava/lang/Object;)Lrx/Observable;
|
|
.locals 0
|
|
|
|
const/4 p3, 0x1
|
|
|
|
and-int/2addr p2, p3
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn(Lrx/Observable;Z)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final takeSingleUntilTimeout(Lrx/Observable;JZ)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;JZ)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$takeSingleUntilTimeout"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->V(I)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
sget-object p3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lrx/Observable;->Y(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object p3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-static {p1, p2, p3}, Lrx/Observable;->Z(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lrx/Observable;->W(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
const-string/jumbo p1, "take(1).let {\n if (\u2026LISECONDS))\n }\n }"
|
|
|
|
invoke-static {p0, p1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic takeSingleUntilTimeout$default(Lrx/Observable;JZILjava/lang/Object;)Lrx/Observable;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x1
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const-wide/16 p1, 0x1388
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x2
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p3, 0x1
|
|
|
|
:cond_1
|
|
invoke-static {p0, p1, p2, p3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->takeSingleUntilTimeout(Lrx/Observable;JZ)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final ui(Lrx/Observable;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$ui"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Ll0/j/b/a;->a()Lrx/Scheduler;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->G(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "observeOn(AndroidSchedulers.mainThread())"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final ui(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;)Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"TT;>;",
|
|
"Lcom/discord/app/AppComponent;",
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple<",
|
|
"*>;)",
|
|
"Lrx/Observable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$ui"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "appComponent"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Ll0/j/b/a;->a()Lrx/Scheduler;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->G(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "observeOn(AndroidSchedulers.mainThread())"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0, p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Lcom/discord/utilities/rx/ObservableExtensionsKt$ui$1;
|
|
|
|
invoke-direct {p1, p2}, Lcom/discord/utilities/rx/ObservableExtensionsKt$ui$1;-><init>(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;)V
|
|
|
|
invoke-virtual {p0, p1}, Lrx/Observable;->t(Lrx/functions/Action0;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "observeOn(AndroidSchedul\u2026beFromUpdates()\n }"
|
|
|
|
invoke-static {p0, p1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;)Lrx/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|