mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-02-24 08:21:11 +01:00
Fix
This commit is contained in:
parent
ab6078f366
commit
cd9f3bf270
@ -21,7 +21,7 @@ public class StatusNotification {
|
||||
private static boolean notificationExists = false;
|
||||
|
||||
public static void Notify(Context context) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && NotificationManagerCompat.from(context).areNotificationsEnabled()) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && NotificationManagerCompat.from(context.getApplicationContext()).areNotificationsEnabled()) {
|
||||
PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
||||
|
||||
boolean isChannelEnabled = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user