- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
113 lines
2.8 KiB
Smali
113 lines
2.8 KiB
Smali
.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/util/NotificationUtil;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"InlinedApi"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/mbridge/msdk/playercommon/exoplayer2/util/NotificationUtil$Importance;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final IMPORTANCE_DEFAULT:I = 0x3
|
|
|
|
.field public static final IMPORTANCE_HIGH:I = 0x4
|
|
|
|
.field public static final IMPORTANCE_LOW:I = 0x2
|
|
|
|
.field public static final IMPORTANCE_MIN:I = 0x1
|
|
|
|
.field public static final IMPORTANCE_NONE:I = 0x0
|
|
|
|
.field public static final IMPORTANCE_UNSPECIFIED:I = -0x3e8
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static createNotificationChannel(Landroid/content/Context;Ljava/lang/String;II)V
|
|
.locals 2
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 47
|
|
sget v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const-string v0, "notification"
|
|
|
|
.line 49
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/app/NotificationManager;
|
|
|
|
.line 50
|
|
new-instance v1, Landroid/app/NotificationChannel;
|
|
|
|
.line 51
|
|
invoke-virtual {p0, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v1, p1, p0, p3}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
|
|
|
.line 52
|
|
invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->createNotificationChannel(Landroid/app/NotificationChannel;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setNotification(Landroid/content/Context;ILandroid/app/Notification;)V
|
|
.locals 1
|
|
.param p2 # Landroid/app/Notification;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "notification"
|
|
|
|
.line 59
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/app/NotificationManager;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 61
|
|
invoke-virtual {p0, p1, p2}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 63
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Landroid/app/NotificationManager;->cancel(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|