2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/utilities/fcm/NotificationRenderer;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "NotificationRenderer.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/utilities/fcm/NotificationRenderer$NotificationDisplaySubscriptionManager;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final INSTANCE:Lcom/discord/utilities/fcm/NotificationRenderer;
|
|
|
|
|
|
|
|
.field public static final NOTIFICATION_AUTO_DISMISS:J = 0xbb8L
|
|
|
|
|
|
|
|
.field public static final NOTIFICATION_ICON_FETCH_DELAY_MS:J = 0xfaL
|
|
|
|
|
|
|
|
.field public static final NOTIFICATION_LIGHT_PERIOD:I = 0x5dc
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/utilities/fcm/NotificationRenderer;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/fcm/NotificationRenderer;-><init>()V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/utilities/fcm/NotificationRenderer;->INSTANCE:Lcom/discord/utilities/fcm/NotificationRenderer;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static final synthetic access$displayNotification(Lcom/discord/utilities/fcm/NotificationRenderer;Landroid/content/Context;ILandroidx/core/app/NotificationCompat$Builder;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/utilities/fcm/NotificationRenderer;->displayNotification(Landroid/content/Context;ILandroidx/core/app/NotificationCompat$Builder;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
.method public static final synthetic access$getMessageStyle(Lcom/discord/utilities/fcm/NotificationRenderer;Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;Ljava/util/List;Ljava/util/Map;)Landroidx/core/app/NotificationCompat$MessagingStyle;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-direct {p0, p1, p2, p3, p4}, Lcom/discord/utilities/fcm/NotificationRenderer;->getMessageStyle(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;Ljava/util/List;Ljava/util/Map;)Landroidx/core/app/NotificationCompat$MessagingStyle;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final autoDismissNotification(Landroid/content/Context;I)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationActions;->Companion:Lcom/discord/utilities/fcm/NotificationActions$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/discord/utilities/fcm/NotificationActions$Companion;->cancel(Landroid/content/Context;I)Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {p1, v0, p2, v0}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const-string v0, "alarm"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
check-cast p1, Landroid/app/AlarmManager;
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
const-wide/16 v3, 0xbb8
|
|
|
|
|
|
|
|
add-long/2addr v1, v3
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0, v1, v2, p2}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p1, Lkotlin/TypeCastException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string p2, "null cannot be cast to non-null type android.app.AlarmManager"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final displayAndUpdateCache(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;)V
|
2020-07-16 18:51:06 +00:00
|
|
|
.locals 20
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-object/from16 v5, p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object/from16 v2, p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
new-instance v1, Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getNotificationChannelId()Ljava/lang/String;
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-direct {v1, v5, v3}, Landroidx/core/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v3, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v3}, Landroidx/core/app/NotificationCompat$Builder;->setAutoCancel(Z)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v3}, Landroidx/core/app/NotificationCompat$Builder;->setOnlyAlertOnce(Z)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getSmallIcon()I
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setSmallIcon(I)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const v4, 0x7f060052
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-static {v5, v4}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setColor(I)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getNotificationCategory()Ljava/lang/String;
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setCategory(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5}, Lcom/discord/utilities/fcm/NotificationData;->getTitle(Landroid/content/Context;)Ljava/lang/CharSequence;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5}, Lcom/discord/utilities/fcm/NotificationData;->getContent(Landroid/content/Context;)Ljava/lang/CharSequence;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;->isDisableSound()Z
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;->isDisableVibrate()Z
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-direct {v0, v4, v6}, Lcom/discord/utilities/fcm/NotificationRenderer;->getNotificationDefaults(ZZ)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setDefaults(I)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-09 23:59:55 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5}, Lcom/discord/utilities/fcm/NotificationData;->getDeleteIntent(Landroid/content/Context;)Landroid/app/PendingIntent;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setDeleteIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5}, Lcom/discord/utilities/fcm/NotificationData;->getContentIntent(Landroid/content/Context;)Landroid/app/PendingIntent;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v4}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getGroupKey()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1}, Landroidx/core/app/NotificationCompat$Builder;->setGroup(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
sget-object v1, Lcom/discord/utilities/fcm/NotificationCache;->INSTANCE:Lcom/discord/utilities/fcm/NotificationCache;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/fcm/NotificationCache;->getAndUpdate(Lcom/discord/utilities/fcm/NotificationData;)Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v7}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getExtras()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5}, Lcom/discord/utilities/fcm/NotificationData;->getFullScreenIntent(Landroid/content/Context;)Landroid/app/PendingIntent;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1, v3}, Landroidx/core/app/NotificationCompat$Builder;->setFullScreenIntent(Landroid/app/PendingIntent;Z)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v3}, Landroidx/core/app/NotificationCompat$Builder;->setVisibility(I)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
:cond_0
|
|
|
|
invoke-interface {v6}, Ljava/util/Collection;->isEmpty()Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
xor-int/2addr v1, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v8, 0x0
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v1, :cond_4
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1}, Landroidx/core/app/NotificationCompat$Builder;->setNumber(I)Landroidx/core/app/NotificationCompat$Builder;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
new-instance v1, Lcom/discord/utilities/images/MGImagesBitmap$CloseableBitmaps;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
sget-object v9, Lj0/i/o;->d:Lj0/i/o;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-direct {v1, v9}, Lcom/discord/utilities/images/MGImagesBitmap$CloseableBitmaps;-><init>(Ljava/util/Map;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-direct {v0, v5, v2, v6, v1}, Lcom/discord/utilities/fcm/NotificationRenderer;->getMessageStyle(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;Ljava/util/List;Ljava/util/Map;)Landroidx/core/app/NotificationCompat$MessagingStyle;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1}, Landroidx/core/app/NotificationCompat$Builder;->setStyle(Landroidx/core/app/NotificationCompat$Style;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getChannelId()J
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-wide v9
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-static {v9, v10}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroidx/core/content/pm/ShortcutManagerCompat;->getDynamicShortcuts(Landroid/content/Context;)Ljava/util/List;
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v10, "ShortcutManagerCompat.getDynamicShortcuts(context)"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v9, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v9}, Ljava/util/Collection;->isEmpty()Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v10
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v10, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v9, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v9}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
:cond_3
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v10
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v10, :cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v10
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
check-cast v10, Landroidx/core/content/pm/ShortcutInfoCompat;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v11, "it"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v10, v11}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v10}, Landroidx/core/content/pm/ShortcutInfoCompat;->getId()Ljava/lang/String;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v10
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v10, v1}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v10
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v10, :cond_3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v9, 0x1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v9, :cond_4
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1}, Landroidx/core/app/NotificationCompat$Builder;->setShortcutId(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:cond_4
|
2020-07-16 18:51:06 +00:00
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v9, 0x1a
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-ge v1, v9, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getNotificationPriority()I
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1}, Landroidx/core/app/NotificationCompat$Builder;->setPriority(I)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
new-array v9, v3, [J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-wide/16 v10, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
aput-wide v10, v9, v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v9}, Landroidx/core/app/NotificationCompat$Builder;->setVibrate([J)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;->isDisableBlink()Z
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-nez v1, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
const v1, 0x7f0601dc
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-static {v5, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v9, 0x5dc
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1, v9, v9}, Landroidx/core/app/NotificationCompat$Builder;->setLights(III)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:cond_5
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5}, Lcom/discord/utilities/fcm/NotificationData;->getNotificationSound(Landroid/content/Context;)Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v1, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;->isDisableSound()Z
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
xor-int/2addr v9, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v9, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:cond_6
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:goto_1
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v1, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
sget-object v9, Lcom/discord/utilities/fcm/NotificationRenderer;->INSTANCE:Lcom/discord/utilities/fcm/NotificationRenderer;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;->isDisableSound()Z
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;->isDisableVibrate()Z
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-direct {v9, v10, v11}, Lcom/discord/utilities/fcm/NotificationRenderer;->getNotificationDefaults(ZZ)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
and-int/lit8 v9, v9, -0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v4, v1}, Landroidx/core/app/NotificationCompat$Builder;->setSound(Landroid/net/Uri;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v9}, Landroidx/core/app/NotificationCompat$Builder;->setDefaults(I)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:cond_7
|
2020-07-16 18:51:06 +00:00
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v9, 0x18
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-lt v1, v9, :cond_9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v1, 0x5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
new-array v1, v1, [Landroidx/core/app/NotificationCompat$Action;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5}, Lcom/discord/utilities/fcm/NotificationData;->getMarkAsReadAction(Landroid/content/Context;)Landroidx/core/app/NotificationCompat$Action;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
aput-object v9, v1, v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;->getSendBlockedChannels()Ljava/util/Set;
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5, v9}, Lcom/discord/utilities/fcm/NotificationData;->getDirectReplyAction(Landroid/content/Context;Ljava/util/Set;)Landroidx/core/app/NotificationCompat$Action;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
aput-object v9, v1, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v9, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5, v10, v11}, Lcom/discord/utilities/fcm/NotificationData;->getTimedMute(Landroid/content/Context;Lcom/discord/utilities/time/Clock;I)Landroidx/core/app/NotificationCompat$Action;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
aput-object v10, v1, v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v9, 0x3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5, v8}, Lcom/discord/utilities/fcm/NotificationData;->getCallAction(Landroid/content/Context;Z)Landroidx/core/app/NotificationCompat$Action;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
aput-object v10, v1, v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v9, 0x4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v5, v3}, Lcom/discord/utilities/fcm/NotificationData;->getCallAction(Landroid/content/Context;Z)Landroidx/core/app/NotificationCompat$Action;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
aput-object v10, v1, v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {v1}, Lf/n/a/k/a;->listOf([Ljava/lang/Object;)Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:cond_8
|
|
|
|
:goto_2
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v9, :cond_9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast v9, Landroidx/core/app/NotificationCompat$Action;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v9, :cond_8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v4, v9}, Landroidx/core/app/NotificationCompat$Builder;->addAction(Landroidx/core/app/NotificationCompat$Action;)Landroidx/core/app/NotificationCompat$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:cond_9
|
2020-07-16 18:51:06 +00:00
|
|
|
sget-object v1, Lcom/discord/utilities/fcm/NotificationRenderer$NotificationDisplaySubscriptionManager;->INSTANCE:Lcom/discord/utilities/fcm/NotificationRenderer$NotificationDisplaySubscriptionManager;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v7}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getId()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v1, v9}, Lcom/discord/utilities/fcm/NotificationRenderer$NotificationDisplaySubscriptionManager;->cancel(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-virtual {v7}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getExtras()Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
new-instance v9, Ljava/util/ArrayList;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
:cond_a
|
2020-07-22 00:04:40 +00:00
|
|
|
:goto_3
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
if-eqz v10, :cond_b
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v10
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast v10, Lcom/discord/utilities/fcm/NotificationData;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-virtual {v10}, Lcom/discord/utilities/fcm/NotificationData;->getIconUrlForUser()Ljava/lang/String;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v10
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
if-eqz v10, :cond_a
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-interface {v9, v10}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
:cond_b
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getIconUrl()Ljava/lang/String;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {v9, v1}, Lj0/i/l;->plus(Ljava/util/Collection;Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v9, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
const/16 v10, 0xa
|
|
|
|
|
|
|
|
invoke-static {v1, v10}, Lf/n/a/k/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
invoke-direct {v9, v10}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
if-eqz v10, :cond_c
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v10
|
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
check-cast v10, Ljava/lang/String;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
new-instance v11, Lcom/discord/utilities/images/MGImagesBitmap$ImageRequest;
|
|
|
|
|
|
|
|
invoke-direct {v11, v10, v3}, Lcom/discord/utilities/images/MGImagesBitmap$ImageRequest;-><init>(Ljava/lang/String;Z)V
|
|
|
|
|
|
|
|
invoke-interface {v9, v11}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
invoke-static {v9}, Lj0/i/l;->toMutableSet(Ljava/lang/Iterable;)Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v1
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getSticker()Lcom/discord/models/dsti/dto/ModelDsti;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v3
|
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
if-eqz v3, :cond_d
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/utilities/images/MGImagesBitmap$ImageRequest;
|
|
|
|
|
|
|
|
sget-object v9, Lcom/discord/utilities/dsti/DstiUtils;->INSTANCE:Lcom/discord/utilities/dsti/DstiUtils;
|
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/utilities/fcm/NotificationData;->getSticker()Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
|
|
|
|
move-result-object v10
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v9, v10}, Lcom/discord/utilities/dsti/DstiUtils;->getCDNPreviewAssetUrl(Lcom/discord/models/dsti/dto/ModelDsti;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-direct {v3, v9, v8}, Lcom/discord/utilities/images/MGImagesBitmap$ImageRequest;-><init>(Ljava/lang/String;Z)V
|
|
|
|
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
:cond_d
|
2020-07-23 01:06:17 +00:00
|
|
|
sget-object v3, Lcom/discord/utilities/images/MGImagesBitmap;->INSTANCE:Lcom/discord/utilities/images/MGImagesBitmap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v3, v1}, Lcom/discord/utilities/images/MGImagesBitmap;->getBitmaps(Ljava/util/Set;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v3}, Lrx/Observable;->N()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v8, Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v8}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-wide/16 v9, 0xfa
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
sget-object v11, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-static {v9, v10, v11}, Lrx/Observable;->Z(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
sget-object v10, Lr0/l/a/g;->e:Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v11, Lr0/l/a/i1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v12, Lr0/l/a/g1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v12, v10}, Lr0/l/a/g1;-><init>(Lrx/Observable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v11, v12}, Lr0/l/a/i1;-><init>(Lr0/k/b;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v10, Lr0/l/a/u;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
iget-object v12, v3, Lrx/Observable;->d:Lrx/Observable$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v10, v12, v11}, Lr0/l/a/u;-><init>(Lrx/Observable$a;Lrx/Observable$b;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-static {v10}, Lrx/Observable;->d0(Lrx/Observable$a;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v9, v10}, Lrx/Observable;->W(Lrx/Observable;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {}, Lr0/j/b/a;->a()Lrx/Scheduler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v9, v10}, Lrx/Observable;->H(Lrx/Scheduler;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v9, "Observable\n .time\u2026dSchedulers.mainThread())"
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v11, v9}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v12, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
new-instance v14, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$4;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-direct {v14, v8}, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$4;-><init>(Lrx/subscriptions/CompositeSubscription;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
new-instance v15, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$5;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-direct {v15, v5, v7, v4}, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$5;-><init>(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;Landroidx/core/app/NotificationCompat$Builder;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v16, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v17, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v18, 0x30
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v19, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v13, "Unable to display notification, timeout."
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-static/range {v11 .. v19}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->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
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {}, Lr0/j/b/a;->a()Lrx/Scheduler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v3, v9}, Lrx/Observable;->H(Lrx/Scheduler;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v3, "bitmapsObservable\n \u2026dSchedulers.mainThread())"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v10, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v9, "Unable to display notification multi-fetch "
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v3, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Set;->size()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v1, " bitmaps."
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v12
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
new-instance v13, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$6;
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-direct {v13, v8}, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$6;-><init>(Lrx/subscriptions/CompositeSubscription;)V
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
new-instance v14, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$7;
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object v1, v14
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object/from16 v2, p2
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object v3, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object v4, v6
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object/from16 v5, p1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-object v6, v7
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-08-13 00:07:13 +00:00
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/discord/utilities/fcm/NotificationRenderer$displayAndUpdateCache$7;-><init>(Lcom/discord/utilities/fcm/NotificationData;Landroidx/core/app/NotificationCompat$Builder;Ljava/util/List;Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v15, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v17, 0x30
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/16 v18, 0x0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-static/range {v10 .. v18}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->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
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
sget-object v1, Lcom/discord/utilities/fcm/NotificationRenderer$NotificationDisplaySubscriptionManager;->INSTANCE:Lcom/discord/utilities/fcm/NotificationRenderer$NotificationDisplaySubscriptionManager;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v7}, Lcom/discord/utilities/fcm/NotificationData$DisplayPayload;->getId()I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v2
|
2020-07-09 23:59:55 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v2, v8}, Lcom/discord/utilities/fcm/NotificationRenderer$NotificationDisplaySubscriptionManager;->add(ILrx/Subscription;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method private final displayNotification(Landroid/content/Context;ILandroidx/core/app/NotificationCompat$Builder;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 6
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-static {p1}, Landroidx/core/app/NotificationManagerCompat;->from(Landroid/content/Context;)Landroidx/core/app/NotificationManagerCompat;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p3}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, p2, p3}, Landroidx/core/app/NotificationManagerCompat;->notify(ILandroid/app/Notification;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
2020-07-31 02:11:25 +00:00
|
|
|
sget-object v0, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const-string v1, "NotifyError"
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
.method private final getMessageStyle(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;Ljava/util/List;Ljava/util/Map;)Landroidx/core/app/NotificationCompat$MessagingStyle;
|
|
|
|
.locals 6
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/content/Context;",
|
|
|
|
"Lcom/discord/utilities/fcm/NotificationData;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/utilities/fcm/NotificationData;",
|
|
|
|
">;",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Landroid/graphics/Bitmap;",
|
2020-07-16 18:51:06 +00:00
|
|
|
">;)",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Landroidx/core/app/NotificationCompat$MessagingStyle;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/core/app/Person$Builder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/core/app/Person$Builder;-><init>()V
|
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
const v1, 0x7f120ea9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/core/app/Person$Builder;->setName(Ljava/lang/CharSequence;)Landroidx/core/app/Person$Builder;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "me"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/core/app/Person$Builder;->setKey(Ljava/lang/String;)Landroidx/core/app/Person$Builder;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/core/app/Person$Builder;->build()Landroidx/core/app/Person;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Person.Builder()\n \u2026ey(\"me\")\n .build()"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v1, Landroidx/core/app/NotificationCompat$MessagingStyle;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Landroidx/core/app/NotificationCompat$MessagingStyle;-><init>(Landroidx/core/app/Person;)V
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/utilities/fcm/NotificationData;->getConversationTitle(Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v1, v0}, Landroidx/core/app/NotificationCompat$MessagingStyle;->setConversationTitle(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$MessagingStyle;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/utilities/fcm/NotificationData;->isGroupConversation()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v0, p2}, Landroidx/core/app/NotificationCompat$MessagingStyle;->setGroupConversation(Z)Landroidx/core/app/NotificationCompat$MessagingStyle;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-interface {p3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
:goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v0, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
check-cast v0, Lcom/discord/utilities/fcm/NotificationData;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/fcm/NotificationData;->getIconUrlForUser()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-interface {p4, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
check-cast v1, Landroid/graphics/Bitmap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-eqz v1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-static {v1}, Landroidx/core/graphics/drawable/IconCompat;->createWithBitmap(Landroid/graphics/Bitmap;)Landroidx/core/graphics/drawable/IconCompat;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/utilities/fcm/NotificationData;->getSender(Landroid/content/Context;)Landroidx/core/app/Person;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2}, Landroidx/core/app/Person;->toBuilder()Landroidx/core/app/Person$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2, v1}, Landroidx/core/app/Person$Builder;->setIcon(Landroidx/core/graphics/drawable/IconCompat;)Landroidx/core/app/Person$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v2}, Landroidx/core/app/Person$Builder;->build()Landroidx/core/app/Person;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const-string v3, "data.getSender(context).\u2026(icon)\n .build()"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v2, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
if-nez v1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
const/4 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
:goto_2
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/utilities/fcm/NotificationData;->getContent(Landroid/content/Context;)Ljava/lang/CharSequence;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/fcm/NotificationData;->getMessageIdTimestamp()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
move-result-wide v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
int-to-long v0, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
add-long/2addr v4, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
invoke-virtual {p2, v3, v4, v5, v2}, Landroidx/core/app/NotificationCompat$MessagingStyle;->addMessage(Ljava/lang/CharSequence;JLandroidx/core/app/Person;)Landroidx/core/app/NotificationCompat$MessagingStyle;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 18:51:06 +00:00
|
|
|
:cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
const-string p1, "msgStyle"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p2, p1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object p2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getNotificationDefaults(ZZ)I
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
or-int/lit8 p1, p1, 0x2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final clear(Landroid/content/Context;JZ)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationCache;->INSTANCE:Lcom/discord/utilities/fcm/NotificationCache;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/utilities/fcm/NotificationRenderer$clear$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/utilities/fcm/NotificationRenderer$clear$1;-><init>(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2, p3, p4, v1}, Lcom/discord/utilities/fcm/NotificationCache;->remove(JZLkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final display(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/utilities/fcm/NotificationRenderer;->displayAndUpdateCache(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;Lcom/discord/utilities/fcm/NotificationClient$SettingsV2;)V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v3
|
|
|
|
|
2020-07-31 02:11:25 +00:00
|
|
|
sget-object v1, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x4
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const-string v2, "Unable to display notification."
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "settings"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "notificationData"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final displayInApp(Landroid/content/Context;Lcom/discord/utilities/fcm/NotificationData;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/utilities/fcm/NotificationData;->getChannelId()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/utilities/fcm/NotificationData;->getTitle(Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, ""
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v4, v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/utilities/fcm/NotificationData;->getContent(Landroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
move-object v5, v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object v5, v1
|
|
|
|
|
|
|
|
:goto_1
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4}, Lj0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5}, Lj0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {p2}, Lcom/discord/utilities/fcm/NotificationData;->getIconUrl()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/notice/WidgetNoticePopup;->Companion:Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;
|
|
|
|
|
|
|
|
const-string v3, "InAppNotif#"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v3, v0, v1}, Lf/e/b/a/a;->l(Ljava/lang/String;J)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v8, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v9, Lcom/discord/utilities/fcm/NotificationRenderer$displayInApp$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v9, p2, p1}, Lcom/discord/utilities/fcm/NotificationRenderer$displayInApp$1;-><init>(Lcom/discord/utilities/fcm/NotificationData;Landroid/content/Context;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v10, 0x30
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static/range {v2 .. v11}, Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;->enqueue$default(Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/net/Uri;ILjava/util/List;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "notificationData"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final displaySent(Landroid/content/Context;JLjava/lang/CharSequence;ZI)V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
move/from16 v1, p6
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v2, 0x7f120ff0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-08-20 22:29:33 +00:00
|
|
|
const v2, 0x7f120fef
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
sget-object v3, Lcom/discord/utilities/fcm/NotificationActions;->Companion:Lcom/discord/utilities/fcm/NotificationActions$Companion;
|
|
|
|
|
|
|
|
move-wide v4, p2
|
|
|
|
|
|
|
|
invoke-virtual {v3, p1, v4, v5}, Lcom/discord/utilities/fcm/NotificationActions$Companion;->delete(Landroid/content/Context;J)Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/high16 v12, 0x8000000
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {p1, v11, v3, v12}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-wide/16 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x6
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v4 .. v10}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->selectChannel$default(JJLjava/lang/Long;ILjava/lang/Object;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-class v5, Lcom/discord/app/AppActivity$Main;
|
|
|
|
|
|
|
|
invoke-virtual {v4, p1, v5}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {p1, v11, v4, v12}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
new-instance v5, Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
|
|
|
const-string v6, "Messages"
|
|
|
|
|
|
|
|
invoke-direct {v5, p1, v6}, Landroidx/core/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Landroidx/core/app/NotificationCompat$Builder;->setAutoCancel(Z)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v7, 0x7f08036c
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Landroidx/core/app/NotificationCompat$Builder;->setSmallIcon(I)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const-string v7, "msg"
|
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Landroidx/core/app/NotificationCompat$Builder;->setCategory(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-array v6, v6, [Ljava/lang/Object;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object p4, v6, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v2, v6}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v5, v2}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroidx/core/app/NotificationCompat$Builder;->setDeleteIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/core/app/NotificationManagerCompat;->from(Landroid/content/Context;)Landroidx/core/app/NotificationManagerCompat;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1, v2}, Landroidx/core/app/NotificationManagerCompat;->notify(ILandroid/app/Notification;)V
|
|
|
|
|
|
|
|
move-object v3, p0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v1}, Lcom/discord/utilities/fcm/NotificationRenderer;->autoDismissNotification(Landroid/content/Context;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v3, p0
|
|
|
|
|
|
|
|
const-string v0, "channelName"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object v3, p0
|
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final initNotificationChannels(Landroid/app/Application;)V
|
|
|
|
.locals 12
|
|
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
|
|
value = 0x1a
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
new-instance v0, Landroid/app/NotificationChannel;
|
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v1, 0x7f12037c
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/app/Application;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v3, "Calls"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v4, 0x4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v0, v3, v2, v4}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Landroid/app/NotificationChannel;
|
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v3, 0x7f1217a2 # 1.9419E38f
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, v3}, Landroid/app/Application;->getString(I)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v5, "Media Connections"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v6, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v2, v5, v3, v6}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v3, Landroid/app/NotificationChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-18 03:20:31 +00:00
|
|
|
const v5, 0x7f120ed9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v7, "Messages"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v3, v7, v5, v4}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v5, Landroid/app/NotificationChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v7, 0x7f120594
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v7}, Landroid/app/Application;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
const-string v8, "DirectMessages"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v5, v8, v7, v4}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v7, Landroid/app/NotificationChannel;
|
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v8, 0x7f1207b2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v8}, Landroid/app/Application;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
const-string v9, "Social"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v7, v9, v8, v6}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v8, Landroid/app/NotificationChannel;
|
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v9, 0x7f1207fb
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v9}, Landroid/app/Application;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v10, "Game Detection"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v11, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v8, v10, v9, v11}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v9, 0x6
|
|
|
|
|
|
|
|
new-array v9, v9, [Landroid/app/NotificationChannel;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v10, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object v0, v9, v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object v2, v9, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object v3, v9, v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v3, 0x3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object v5, v9, v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object v7, v9, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x5
|
|
|
|
|
|
|
|
aput-object v8, v9, v3
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {v9}, Lf/n/a/k/a;->listOf([Ljava/lang/Object;)Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v5, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
check-cast v5, Landroid/app/NotificationChannel;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v5, v11}, Landroid/app/NotificationChannel;->setShowBadge(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v5, v11}, Landroid/app/NotificationChannel;->enableVibration(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v5, v11}, Landroid/app/NotificationChannel;->enableLights(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
const v7, 0x7f0601dc
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v7}, Landroid/app/Application;->getColor(I)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v5, v7}, Landroid/app/NotificationChannel;->setLightColor(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p1, v1}, Landroid/app/Application;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/NotificationChannel;->setDescription(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/16 v1, 0x9
|
|
|
|
|
|
|
|
new-array v1, v1, [J
|
|
|
|
|
|
|
|
fill-array-data v1, :array_0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/NotificationChannel;->setVibrationPattern([J)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0, v10}, Landroid/app/NotificationChannel;->setShowBadge(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v4, "android.resource://"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/app/Application;->getPackageName()Ljava/lang/String;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v5, 0x2f
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v5, Lcom/discord/utilities/media/AppSound;->Companion:Lcom/discord/utilities/media/AppSound$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/utilities/media/AppSound$Companion;->getSOUND_CALL_RINGING()Lcom/discord/utilities/media/AppSound;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v4, "StringBuilder()\n \u2026)\n .toString()"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v4, Landroid/media/AudioAttributes$Builder;
|
|
|
|
|
|
|
|
invoke-direct {v4}, Landroid/media/AudioAttributes$Builder;-><init>()V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v5, 0x7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4, v5}, Landroid/media/AudioAttributes$Builder;->setUsage(I)Landroid/media/AudioAttributes$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4, v6}, Landroid/media/AudioAttributes$Builder;->setContentType(I)Landroid/media/AudioAttributes$Builder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/media/AudioAttributes$Builder;->build()Landroid/media/AudioAttributes;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v4}, Landroid/app/NotificationChannel;->setSound(Landroid/net/Uri;Landroid/media/AudioAttributes;)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v2, v10}, Landroid/app/NotificationChannel;->setShowBadge(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v2, v10}, Landroid/app/NotificationChannel;->enableVibration(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v0, "notification"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Application;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/app/NotificationManager;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v3}, Landroid/app/NotificationManager;->createNotificationChannels(Ljava/util/List;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p1, Lkotlin/TypeCastException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v0, "null cannot be cast to non-null type android.app.NotificationManager"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
nop
|
|
|
|
|
|
|
|
:array_0
|
|
|
|
.array-data 8
|
|
|
|
0x64
|
|
|
|
0xc8
|
|
|
|
0x12c
|
|
|
|
0x190
|
|
|
|
0x1f4
|
|
|
|
0x190
|
|
|
|
0x12c
|
|
|
|
0xc8
|
|
|
|
0x190
|
|
|
|
.end array-data
|
|
|
|
.end method
|