Don't stop service while installing AB updates

Change-Id: I2e5eaffa2b64ce8d387958b070a23f393f827c5e
This commit is contained in:
Gabriele M
2017-11-12 18:27:58 +01:00
parent 8c9976d622
commit 7be5b7c057

View File

@@ -220,7 +220,8 @@ public class UpdaterService extends Service {
} }
private void tryStopSelf() { private void tryStopSelf() {
if (!mHasClients && !mUpdaterController.hasActiveDownloads()) { if (!mHasClients && !mUpdaterController.hasActiveDownloads() &&
!mUpdaterController.isInstallingUpdate()) {
Log.d(TAG, "Service no longer needed, stopping"); Log.d(TAG, "Service no longer needed, stopping");
stopSelf(); stopSelf();
} }