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

Commit a7804de0 authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge "BgDexopt: Reschedule job on timeout" am: 45bd60b4 am: a4f14c5b

am: e862c378

Change-Id: I6870fd2e52e10c491546bd27dc77deb6caa3d715
parents f0776643 e862c378
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -472,10 +472,17 @@ public class BackgroundDexOptService extends JobService {

        if (params.getJobId() == JOB_POST_BOOT_UPDATE) {
            mAbortPostBootUpdate.set(true);

            // Do not reschedule.
            // TODO: We should reschedule if we didn't process all apps, yet.
            return false;
        } else {
            mAbortIdleOptimization.set(true);

            // Reschedule the run.
            // TODO: Should this be dependent on the stop reason?
            return true;
        }
        return false;
    }

    private void notifyPinService(ArraySet<String> updatedPackages) {