Don't stop service while installing AB updates
Change-Id: I2e5eaffa2b64ce8d387958b070a23f393f827c5e
This commit is contained in:
@@ -220,7 +220,8 @@ public class UpdaterService extends Service {
|
||||
}
|
||||
|
||||
private void tryStopSelf() {
|
||||
if (!mHasClients && !mUpdaterController.hasActiveDownloads()) {
|
||||
if (!mHasClients && !mUpdaterController.hasActiveDownloads() &&
|
||||
!mUpdaterController.isInstallingUpdate()) {
|
||||
Log.d(TAG, "Service no longer needed, stopping");
|
||||
stopSelf();
|
||||
}
|
||||
|
Reference in New Issue
Block a user