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

Commit 12767a40 authored by Kweku Adams's avatar Kweku Adams
Browse files

Skip persisting when there's no change.

Only request the persisted file be updated when we have actually
modified something inside the JobWorkItem.

Bug: 141645789
Test: N/A
Change-Id: Iad218a79c375854ac6dfae23fbc0bf13691ee03b
parent c0bcd9af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
                }