Invert if statement to bail early.

This commit is contained in:
Peter Serwylo 2017-02-24 14:35:35 +11:00 committed by mvp76
parent 7329dc5d8d
commit d2ef357403

View File

@ -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() {