Stop service when pausing downloads

Change-Id: Ibb77c7f0d4309874fcfa591d12b5e6ce4a6d6abc
This commit is contained in:
Gabriele M
2017-11-30 23:40:59 +01:00
parent cbe6bd69fd
commit d4a65e455e

View File

@@ -275,6 +275,7 @@ public class UpdaterService extends Service {
mNotificationBuilder.setOngoing(false);
mNotificationBuilder.setAutoCancel(false);
mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());
tryStopSelf();
break;
}
case PAUSED_ERROR: {
@@ -292,6 +293,7 @@ public class UpdaterService extends Service {
mNotificationBuilder.setOngoing(false);
mNotificationBuilder.setAutoCancel(false);
mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());
tryStopSelf();
break;
}
case VERIFYING: {