mirror of
https://github.com/androidx/media.git
synced 2025-05-07 07:30:22 +08:00
Declare all InternalState values in switch statement
Lint likes all constants for an IntDef to be declared explicitly in switch statements. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=207545682
This commit is contained in:
parent
44101fc00b
commit
dc8dc0e392
@ -730,6 +730,11 @@ public final class DownloadManager {
|
|||||||
return "CANCELING";
|
return "CANCELING";
|
||||||
case STATE_STARTED_STOPPING:
|
case STATE_STARTED_STOPPING:
|
||||||
return "STOPPING";
|
return "STOPPING";
|
||||||
|
case STATE_QUEUED:
|
||||||
|
case STATE_STARTED:
|
||||||
|
case STATE_COMPLETED:
|
||||||
|
case STATE_CANCELED:
|
||||||
|
case STATE_FAILED:
|
||||||
default:
|
default:
|
||||||
return TaskState.getStateString(currentState);
|
return TaskState.getStateString(currentState);
|
||||||
}
|
}
|
||||||
@ -742,6 +747,11 @@ public final class DownloadManager {
|
|||||||
case STATE_STARTED_CANCELING:
|
case STATE_STARTED_CANCELING:
|
||||||
case STATE_STARTED_STOPPING:
|
case STATE_STARTED_STOPPING:
|
||||||
return STATE_STARTED;
|
return STATE_STARTED;
|
||||||
|
case STATE_QUEUED:
|
||||||
|
case STATE_STARTED:
|
||||||
|
case STATE_COMPLETED:
|
||||||
|
case STATE_CANCELED:
|
||||||
|
case STATE_FAILED:
|
||||||
default:
|
default:
|
||||||
return currentState;
|
return currentState;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user