Stop service when pausing downloads
Change-Id: Ibb77c7f0d4309874fcfa591d12b5e6ce4a6d6abc
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user