634 lines
17 KiB
Smali
634 lines
17 KiB
Smali
|
.class public final Lcom/discord/utilities/fcm/NotificationCache;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "NotificationCache.kt"
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final INSTANCE:Lcom/discord/utilities/fcm/NotificationCache;
|
||
|
|
||
|
.field public static final cache:Lcom/discord/utilities/persister/Persister;
|
||
|
.annotation build Landroid/annotation/SuppressLint;
|
||
|
value = {
|
||
|
"StaticFieldLeak"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lcom/discord/utilities/persister/Persister<",
|
||
|
"Ljava/util/HashMap<",
|
||
|
"Ljava/lang/String;",
|
||
|
"Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 3
|
||
|
|
||
|
new-instance v0, Lcom/discord/utilities/fcm/NotificationCache;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/utilities/fcm/NotificationCache;-><init>()V
|
||
|
|
||
|
sput-object v0, Lcom/discord/utilities/fcm/NotificationCache;->INSTANCE:Lcom/discord/utilities/fcm/NotificationCache;
|
||
|
|
||
|
new-instance v0, Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
new-instance v1, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
const-string v2, "NOTIFICATION_BUNDLES_V4"
|
||
|
|
||
|
invoke-direct {v0, v2, v1}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
|
||
|
|
||
|
sput-object v0, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final declared-synchronized get(J)Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
.locals 5
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "cache.get().values"
|
||
|
|
||
|
invoke-static {v0, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move-object v2, v1
|
||
|
|
||
|
check-cast v2, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getData()Lcom/discord/utilities/fcm/NotificationData;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/utilities/fcm/NotificationData;->getChannelId()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
cmp-long v4, v2, p1
|
||
|
|
||
|
if-nez v4, :cond_1
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
check-cast v1, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-object v1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized getAndUpdate(Lcom/discord/utilities/fcm/NotificationData;)Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
.locals 5
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v0, "data"
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
sget-object v2, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/util/Map;
|
||
|
|
||
|
invoke-direct {v0, v2}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/fcm/NotificationData;->getKey()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
new-instance v2, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
|
||
|
invoke-direct {v2, p1}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;-><init>(Lcom/discord/utilities/fcm/NotificationData;)V
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/utilities/fcm/NotificationData;->getKey()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x2
|
||
|
|
||
|
invoke-static {v2, p1, v3, v4, v1}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->update$default(Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;Lcom/discord/utilities/fcm/NotificationData;IILjava/lang/Object;)V
|
||
|
|
||
|
sget-object p1, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-virtual {p1, v0, v1}, Lcom/discord/utilities/persister/Persister;->set(Ljava/lang/Object;Z)Ljava/lang/Object;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
:cond_1
|
||
|
:try_start_1
|
||
|
invoke-static {v0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized remove(JZLkotlin/jvm/functions/Function1;)V
|
||
|
.locals 8
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(JZ",
|
||
|
"Lkotlin/jvm/functions/Function1<",
|
||
|
"-",
|
||
|
"Ljava/lang/Integer;",
|
||
|
"Lkotlin/Unit;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v0, "notificationRemovedCallback"
|
||
|
|
||
|
if-eqz p4, :cond_3
|
||
|
|
||
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/util/HashMap;
|
||
|
|
||
|
new-instance v1, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v1, v0}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_2
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
check-cast v4, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
|
||
|
if-eqz v4, :cond_0
|
||
|
|
||
|
invoke-virtual {v4}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getData()Lcom/discord/utilities/fcm/NotificationData;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
if-eqz v5, :cond_0
|
||
|
|
||
|
invoke-virtual {v5}, Lcom/discord/utilities/fcm/NotificationData;->getChannelId()J
|
||
|
|
||
|
move-result-wide v5
|
||
|
|
||
|
cmp-long v7, v5, p1
|
||
|
|
||
|
if-nez v7, :cond_0
|
||
|
|
||
|
if-eqz p3, :cond_1
|
||
|
|
||
|
invoke-virtual {v4}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getIgnoreNextClearForAck()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
invoke-virtual {v4, v2}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->setIgnoreNextClearForAck(Z)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {v4}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getId()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-interface {p4, v3}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
||
|
|
||
|
:goto_1
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
sget-object p1, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
invoke-virtual {p1, v1, v3}, Lcom/discord/utilities/persister/Persister;->set(Ljava/lang/Object;Z)Ljava/lang/Object;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_3
|
||
|
:try_start_1
|
||
|
invoke-static {v0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized setIgnoreNextClearForAck(JZ)V
|
||
|
.locals 10
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, "content.entries"
|
||
|
|
||
|
invoke-static {v1, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
new-instance v2, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_2
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
check-cast v3, Ljava/util/Map$Entry;
|
||
|
|
||
|
invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
const-string v5, "entry.key"
|
||
|
|
||
|
invoke-static {v4, v5}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v4, Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
check-cast v3, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
|
||
|
if-nez v3, :cond_1
|
||
|
|
||
|
new-instance v5, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v6, "displayPayload value read from the "
|
||
|
|
||
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v6, "NOTIFICATION_BUNDLES_V4 cache "
|
||
|
|
||
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
new-instance v6, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v7, "in "
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
sget-object v7, Lcom/discord/utilities/fcm/NotificationCache;->INSTANCE:Lcom/discord/utilities/fcm/NotificationCache;
|
||
|
|
||
|
invoke-virtual {v7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v7}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v7, " is null "
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
new-instance v6, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v7, "for channelId: "
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v6, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const/16 v7, 0x20
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
new-instance v6, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v7, "and notification data type: "
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v4, "StringBuilder()\n \u2026: $notificationDataType\")"
|
||
|
|
||
|
invoke-static {v5, v4}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v4, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog;
|
||
|
|
||
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
const-string v6, "warningMessage.toString()"
|
||
|
|
||
|
invoke-static {v5, v6}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v6, 0x2
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
invoke-static {v4, v5, v7, v6, v7}, Lcom/discord/utilities/logging/Logger;->w$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
||
|
|
||
|
:cond_1
|
||
|
if-eqz v3, :cond_0
|
||
|
|
||
|
invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
new-instance v1, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
:cond_3
|
||
|
:goto_1
|
||
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
if-eqz v3, :cond_5
|
||
|
|
||
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
move-object v6, v3
|
||
|
|
||
|
check-cast v6, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
|
||
|
invoke-virtual {v6}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getData()Lcom/discord/utilities/fcm/NotificationData;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v7}, Lcom/discord/utilities/fcm/NotificationData;->getChannelId()J
|
||
|
|
||
|
move-result-wide v7
|
||
|
|
||
|
cmp-long v9, v7, p1
|
||
|
|
||
|
if-nez v9, :cond_4
|
||
|
|
||
|
invoke-virtual {v6}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getIgnoreNextClearForAck()Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-eq v6, p3, :cond_4
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_4
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
if-eqz v4, :cond_3
|
||
|
|
||
|
invoke-interface {v1, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_5
|
||
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_3
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
if-eqz p2, :cond_6
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
check-cast p2, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
||
|
|
||
|
invoke-virtual {p2, p3}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->setIgnoreNextClearForAck(Z)V
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_6
|
||
|
sget-object p1, Lcom/discord/utilities/fcm/NotificationCache;->cache:Lcom/discord/utilities/persister/Persister;
|
||
|
|
||
|
invoke-virtual {p1, v0, v5}, Lcom/discord/utilities/persister/Persister;->set(Ljava/lang/Object;Z)Ljava/lang/Object;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|