Fixed crash when notification updater is null
This commit is contained in:
parent
ddd6a12354
commit
91f613b4de
@ -640,7 +640,9 @@ public class DownloadService extends Service {
|
|||||||
// If the service was run for a very short time, the system may delay closing
|
// If the service was run for a very short time, the system may delay closing
|
||||||
// the notification. Set the notification text now so that a misleading message
|
// the notification. Set the notification text now so that a misleading message
|
||||||
// is not left on the notification.
|
// is not left on the notification.
|
||||||
|
if (notificationUpdater != null) {
|
||||||
notificationUpdater.run();
|
notificationUpdater.run();
|
||||||
|
}
|
||||||
cancelNotificationUpdater();
|
cancelNotificationUpdater();
|
||||||
stopForeground(true);
|
stopForeground(true);
|
||||||
stopSelf();
|
stopSelf();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user