Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7be5b7c0 authored by Gabriele M's avatar Gabriele M
Browse files

Don't stop service while installing AB updates

Change-Id: I2e5eaffa2b64ce8d387958b070a23f393f827c5e
parent 8c9976d6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();
        }