mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Tidy up naming
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=195351640
This commit is contained in:
parent
fdbea33a14
commit
e697322620
1 changed files with 6 additions and 6 deletions
|
|
@ -339,17 +339,17 @@ public final class DownloadManager {
|
|||
continue;
|
||||
}
|
||||
|
||||
DownloadAction downloadAction = task.action;
|
||||
boolean removeAction = downloadAction.isRemoveAction;
|
||||
if (!removeAction && skipDownloadActions) {
|
||||
DownloadAction action = task.action;
|
||||
boolean isRemoveAction = action.isRemoveAction;
|
||||
if (!isRemoveAction && skipDownloadActions) {
|
||||
continue;
|
||||
}
|
||||
|
||||
boolean canStartTask = true;
|
||||
for (int j = 0; j < i; j++) {
|
||||
Task otherTask = tasks.get(j);
|
||||
if (otherTask.action.isSameMedia(downloadAction)) {
|
||||
if (removeAction) {
|
||||
if (otherTask.action.isSameMedia(action)) {
|
||||
if (isRemoveAction) {
|
||||
canStartTask = false;
|
||||
logd(task + " clashes with " + otherTask);
|
||||
otherTask.cancel();
|
||||
|
|
@ -364,7 +364,7 @@ public final class DownloadManager {
|
|||
|
||||
if (canStartTask) {
|
||||
task.start();
|
||||
if (!removeAction) {
|
||||
if (!isRemoveAction) {
|
||||
activeDownloadTasks.add(task);
|
||||
skipDownloadActions = activeDownloadTasks.size() == maxActiveDownloadTasks;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue