Merge "Skip persisting when there's no change."

This commit is contained in:
Kweku Adams
2023-02-01 21:13:39 +00:00
committed by Android (Google) Code Review

View File

@@ -648,7 +648,7 @@ public final class JobServiceContext implements ServiceConnection {
"last work dequeued");
// This will finish the job.
doCallbackLocked(false, "last work dequeued");
} else {
} else if (work != null) {
// Delivery count has been updated, so persist JobWorkItem change.
mService.mJobs.touchJob(mRunningJob);
}