Commit dc8dc0e3 by olly Committed by Oliver Woodman

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
parent 44101fc0
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment