Files
rr3-apk/decompiled/sources/com/mbridge/msdk/playercommon/exoplayer2/util/NotificationUtil.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

45 lines
1.6 KiB
Java

package com.mbridge.msdk.playercommon.exoplayer2.util;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@SuppressLint({"InlinedApi"})
/* loaded from: classes4.dex */
public final class NotificationUtil {
public static final int IMPORTANCE_DEFAULT = 3;
public static final int IMPORTANCE_HIGH = 4;
public static final int IMPORTANCE_LOW = 2;
public static final int IMPORTANCE_MIN = 1;
public static final int IMPORTANCE_NONE = 0;
public static final int IMPORTANCE_UNSPECIFIED = -1000;
@Retention(RetentionPolicy.SOURCE)
public @interface Importance {
}
private NotificationUtil() {
}
public static void createNotificationChannel(Context context, String str, @StringRes int i, int i2) {
if (Util.SDK_INT >= 26) {
((NotificationManager) context.getSystemService("notification")).createNotificationChannel(new NotificationChannel(str, context.getString(i), i2));
}
}
public static void setNotification(Context context, int i, @Nullable Notification notification) {
NotificationManager notificationManager = (NotificationManager) context.getSystemService("notification");
if (notification != null) {
notificationManager.notify(i, notification);
} else {
notificationManager.cancel(i);
}
}
}