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);
|
notificationManager.cancel(entry.getUniqueKey(), NOTIFY_ID_INSTALLED);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (notificationManager.areNotificationsEnabled()) {
|
|
||||||
|
if (!notificationManager.areNotificationsEnabled()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Notification notification;
|
Notification notification;
|
||||||
if (entry.status == AppUpdateStatusManager.Status.Installed) {
|
if (entry.status == AppUpdateStatusManager.Status.Installed) {
|
||||||
if (useStackedNotifications()) {
|
if (useStackedNotifications()) {
|
||||||
@ -215,7 +219,6 @@ class NotificationHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private void createSummaryNotifications() {
|
private void createSummaryNotifications() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user