Merge "Recalculate network estimate after work is completed."

This commit is contained in:
TreeHugger Robot
2022-11-18 17:46:35 +00:00
committed by Android (Google) Code Review

View File

@@ -762,7 +762,6 @@ public final class JobStatus {
executingWork.add(work);
work.bumpDeliveryCount();
}
updateNetworkBytesLocked();
return work;
}
return null;
@@ -790,6 +789,7 @@ public final class JobStatus {
if (work.getWorkId() == workId) {
executingWork.remove(i);
ungrantWorkItem(work);
updateNetworkBytesLocked();
return true;
}
}