258 lines
5.2 KiB
Smali
258 lines
5.2 KiB
Smali
.class public Lcom/discord/stores/StoreNotices$PassiveNotice;
|
|
.super Lcom/discord/stores/StoreNotices$Notice;
|
|
.source "StoreNotices.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/stores/StoreNotices;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "PassiveNotice"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;IZJJLkotlin/jvm/functions/Function1;)V
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"IZJJ",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Landroidx/fragment/app/FragmentActivity;",
|
|
"Ljava/lang/Boolean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "name"
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
invoke-static {v2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "show"
|
|
|
|
move-object/from16 v13, p8
|
|
|
|
invoke-static {v13, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/16 v14, 0x32
|
|
|
|
const/4 v15, 0x0
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move/from16 v5, p2
|
|
|
|
move/from16 v6, p3
|
|
|
|
move-wide/from16 v9, p6
|
|
|
|
move-wide/from16 v11, p4
|
|
|
|
invoke-direct/range {v1 .. v15}, Lcom/discord/stores/StoreNotices$Notice;-><init>(Ljava/lang/String;JIZZLjava/util/List;JJLkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Ljava/lang/String;IZJJLkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 10
|
|
|
|
and-int/lit8 v0, p9, 0x4
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v4, p3
|
|
|
|
:goto_0
|
|
and-int/lit8 v0, p9, 0x8
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-wide v0, 0x757b12c00L
|
|
|
|
move-wide v5, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-wide v5, p4
|
|
|
|
:goto_1
|
|
and-int/lit8 v0, p9, 0x10
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-wide/32 v0, 0x1499700
|
|
|
|
move-wide v7, v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-wide/from16 v7, p6
|
|
|
|
:goto_2
|
|
move-object v1, p0
|
|
|
|
move-object v2, p1
|
|
|
|
move v3, p2
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
invoke-direct/range {v1 .. v9}, Lcom/discord/stores/StoreNotices$PassiveNotice;-><init>(Ljava/lang/String;IZJJLkotlin/jvm/functions/Function1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public shouldShow(Ljava/util/Map;)Z
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Long;",
|
|
">;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "lastShownTimes"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/Number;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreNotices$PassiveNotice;->getPriority()I
|
|
|
|
move-result v5
|
|
|
|
if-gt v4, v5, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v2, v1}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Iterable;
|
|
|
|
invoke-static {p1}, Lkotlin/a/m;->w(Ljava/lang/Iterable;)Ljava/lang/Comparable;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Long;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const-wide/16 v0, 0x0
|
|
|
|
:goto_2
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v4
|
|
|
|
sub-long/2addr v4, v0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreNotices$PassiveNotice;->getDelayPeriodMs()J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long p1, v0, v4
|
|
|
|
if-gez p1, :cond_4
|
|
|
|
return v2
|
|
|
|
:cond_4
|
|
return v3
|
|
.end method
|