Invert if statement to bail early.
This commit is contained in:
parent
7329dc5d8d
commit
d2ef357403
@ -189,7 +189,11 @@ class NotificationHelper {
|
||||
notificationManager.cancel(entry.getUniqueKey(), NOTIFY_ID_INSTALLED);
|
||||
return;
|
||||
}
|
||||
if (notificationManager.areNotificationsEnabled()) {
|
||||
|
||||
if (!notificationManager.areNotificationsEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Notification notification;
|
||||
if (entry.status == AppUpdateStatusManager.Status.Installed) {
|
||||
if (useStackedNotifications()) {
|
||||
@ -215,7 +219,6 @@ class NotificationHelper {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void createSummaryNotifications() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user