mirror of
https://github.com/samsonjs/media.git
synced 2026-04-15 12:55:46 +00: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
1 changed files with 10 additions and 0 deletions
|
|
@ -730,6 +730,11 @@ public final class DownloadManager {
|
|||
return "CANCELING";
|
||||
case STATE_STARTED_STOPPING:
|
||||
return "STOPPING";
|
||||
case STATE_QUEUED:
|
||||
case STATE_STARTED:
|
||||
case STATE_COMPLETED:
|
||||
case STATE_CANCELED:
|
||||
case STATE_FAILED:
|
||||
default:
|
||||
return TaskState.getStateString(currentState);
|
||||
}
|
||||
|
|
@ -742,6 +747,11 @@ public final class DownloadManager {
|
|||
case STATE_STARTED_CANCELING:
|
||||
case STATE_STARTED_STOPPING:
|
||||
return STATE_STARTED;
|
||||
case STATE_QUEUED:
|
||||
case STATE_STARTED:
|
||||
case STATE_COMPLETED:
|
||||
case STATE_CANCELED:
|
||||
case STATE_FAILED:
|
||||
default:
|
||||
return currentState;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue