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:
olly 2018-08-06 08:03:55 -07:00 committed by Oliver Woodman
parent 44101fc00b
commit dc8dc0e392

View File

@ -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;
}