apkfuckery/com.discord/smali/com/discord/utilities/press/InteractionTimer$get$1.smali

141 lines
3.6 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/discord/utilities/press/InteractionTimer$get$1;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "InteractionTimer.kt"
# interfaces
2020-04-27 20:53:11 +00:00
.implements Lf0/l/i;
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/utilities/press/InteractionTimer;->get()Lrx/Observable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
2020-04-27 20:53:11 +00:00
"Lf0/l/i<",
2019-07-24 11:27:29 +00:00
"TR;",
"Lrx/Observable<",
"+TR;>;>;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Lcom/discord/utilities/press/InteractionTimer;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Lcom/discord/utilities/press/InteractionTimer;)V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1, p0, Lcom/discord/utilities/press/InteractionTimer$get$1;->this$0:Lcom/discord/utilities/press/InteractionTimer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 0
check-cast p1, Ljava/lang/Long;
invoke-virtual {p0, p1}, Lcom/discord/utilities/press/InteractionTimer$get$1;->call(Ljava/lang/Long;)Lrx/Observable;
move-result-object p1
return-object p1
.end method
.method public final call(Ljava/lang/Long;)Lrx/Observable;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Long;",
")",
"Lrx/Observable<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
const-string v2, "lastInteractionTime"
2020-04-27 20:53:11 +00:00
invoke-static {p1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
sub-long/2addr v0, v2
iget-object p1, p0, Lcom/discord/utilities/press/InteractionTimer$get$1;->this$0:Lcom/discord/utilities/press/InteractionTimer;
invoke-virtual {p1}, Lcom/discord/utilities/press/InteractionTimer;->getThresholdMillis()J
move-result-wide v2
cmp-long p1, v0, v2
if-gez p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
2020-04-27 20:53:11 +00:00
new-instance v0, Lf0/m/e/j;
2019-07-24 11:27:29 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v0, p1}, Lf0/m/e/j;-><init>(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object p1, p0, Lcom/discord/utilities/press/InteractionTimer$get$1;->this$0:Lcom/discord/utilities/press/InteractionTimer;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Lcom/discord/utilities/press/InteractionTimer;->getThresholdMillis()J
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-wide v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-static {v1, v2, p1}, Lrx/Observable;->h(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/utilities/press/InteractionTimer$get$1$1;->INSTANCE:Lcom/discord/utilities/press/InteractionTimer$get$1$1;
2020-04-27 20:53:11 +00:00
invoke-virtual {p1, v1}, Lrx/Observable;->f(Lf0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0, p1}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object p1
return-object p1
.end method