147 lines
4 KiB
Smali
147 lines
4 KiB
Smali
.class public final Lcom/discord/widgets/status/WidgetGlobalStatusIndicator$bindDelay$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetGlobalStatusIndicator.kt"
|
|
|
|
# interfaces
|
|
.implements Lt0/k/b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/status/WidgetGlobalStatusIndicator;->bindDelay(Lrx/Observable;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lt0/k/b<",
|
|
"Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState;",
|
|
"Lrx/Observable<",
|
|
"+",
|
|
"Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $this_bindDelay:Lrx/Observable;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Observable;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/status/WidgetGlobalStatusIndicator$bindDelay$1;->$this_bindDelay:Lrx/Observable;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/status/WidgetGlobalStatusIndicator$bindDelay$1;->call(Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final call(Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState;)Lrx/Observable;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"+",
|
|
"Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState$Offline;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState$Offline;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState$Offline;->getDelay()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
instance-of v0, p1, Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState$Connecting;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState$Connecting;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/status/WidgetGlobalStatusIndicatorViewModel$ViewState$Connecting;->getDelay()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Number;->longValue()J
|
|
|
|
new-instance v1, Lt0/l/e/j;
|
|
|
|
invoke-direct {v1, p1}, Lt0/l/e/j;-><init>(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v1, v2, v3, p1}, Lrx/Observable;->p(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/discord/widgets/status/WidgetGlobalStatusIndicator$bindDelay$1;->$this_bindDelay:Lrx/Observable;
|
|
|
|
:goto_1
|
|
return-object p1
|
|
.end method
|