101 lines
2.8 KiB
Smali
101 lines
2.8 KiB
Smali
.class public Lcom/firemint/realracing/RRPushTNGIntentService;
|
|
.super Lcom/ea/nimble/pushtng/NimblePushTNGIntentService;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 11
|
|
invoke-direct {p0}, Lcom/ea/nimble/pushtng/NimblePushTNGIntentService;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public customizeNotification(Landroidx/core/app/NotificationCompat$Builder;Landroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 24
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/firemint/realracing/R$color;->NotificationColor:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/core/app/NotificationCompat$Builder;->setColor(I)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 28
|
|
new-instance v1, Landroid/content/Intent;
|
|
|
|
const-class v2, Lcom/firemint/realracing/UnpackAssetsActivity;
|
|
|
|
invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
.line 29
|
|
invoke-virtual {v1, p2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/high16 v3, 0x14000000
|
|
|
|
.line 31
|
|
invoke-static {p0, v2, v1, v3}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
move-result-object v1
|
|
|
|
.line 32
|
|
invoke-virtual {p1, v1}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
.line 34
|
|
invoke-static {v1}, Lcom/firemint/realracing/MainActivity;->IsAtLeastAPI(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
sget v1, Lcom/firemint/realracing/R$string;->NOTIFICATION_CHANNEL_GENERAL_ID:I
|
|
|
|
.line 36
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/core/app/NotificationCompat$Builder;->setChannelId(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 40
|
|
:cond_1
|
|
invoke-super {p0, p1, p2}, Lcom/ea/nimble/pushtng/NimblePushTNGIntentService;->customizeNotification(Landroidx/core/app/NotificationCompat$Builder;Landroid/os/Bundle;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isInForeground()Z
|
|
.locals 1
|
|
|
|
.line 48
|
|
invoke-static {}, Lcom/firemint/realracing/Platform;->IsInForeground()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|