Refactor and cleanup backupv2 media restore.

This commit is contained in:
Cody Henthorne
2024-09-11 12:38:19 -04:00
parent baa6032770
commit 816006c67e
25 changed files with 498 additions and 671 deletions

View File

@@ -164,7 +164,7 @@ class JobController {
}
@WorkerThread
void submitJobs(@NonNull List<Job> jobs) {
<T extends Job> void submitJobs(@NonNull List<T> jobs) {
List<Job> canRun = new ArrayList<>(jobs.size());
synchronized (this) {

View File

@@ -198,7 +198,7 @@ public class JobManager implements ConstraintObserver.Notifier {
});
}
public void addAll(@NonNull List<Job> jobs) {
public <T extends Job> void addAll(@NonNull List<T> jobs) {
if (jobs.isEmpty()) {
return;
}