This commit is contained in:
Oizaro 2020-09-18 22:19:43 +02:00 committed by GitHub
parent c268e68b2a
commit 7d760440ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -42,11 +42,13 @@ public class StatusNotification {
if (!NotificationManagerCompat.from(context.getApplicationContext()).areNotificationsEnabled()) {
resetNotification = true;
} else {
if (notificationExists && resetNotification) {
destroyNotification(context);
resetNotification = false;
} else {
buildStatusNotification(context);
if (notificationExists)
if (resetNotification) {
destroyNotification(context);
resetNotification = false;
} else {
buildStatusNotification(context);
}
}
}
} else {
@ -96,4 +98,4 @@ public class StatusNotification {
notificationExists = true;
}
}
}