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.setOngoing(false);
|
||||||
mNotificationBuilder.setAutoCancel(false);
|
mNotificationBuilder.setAutoCancel(false);
|
||||||
mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());
|
mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());
|
||||||
|
tryStopSelf();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PAUSED_ERROR: {
|
case PAUSED_ERROR: {
|
||||||
@@ -292,6 +293,7 @@ public class UpdaterService extends Service {
|
|||||||
mNotificationBuilder.setOngoing(false);
|
mNotificationBuilder.setOngoing(false);
|
||||||
mNotificationBuilder.setAutoCancel(false);
|
mNotificationBuilder.setAutoCancel(false);
|
||||||
mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());
|
mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());
|
||||||
|
tryStopSelf();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VERIFYING: {
|
case VERIFYING: {
|
||||||
|
Reference in New Issue
Block a user