Fix spelling of actions in application command

Change-Id: Iae17e1842f92ecd0b6112f1999d11dcff0f5c26a
This commit is contained in:
Jonathan Hart 2017-02-02 13:20:35 -08:00
parent c2417670d1
commit b5132faa4c

View File

@ -107,17 +107,21 @@ public class ApplicationCommand extends AbstractShellCommand {
return false;
}
String action;
if (command.equals(UNINSTALL)) {
service.uninstall(appId);
action = "Uninstalled";
} else if (command.equals(ACTIVATE)) {
service.activate(appId);
action = "Activated";
} else if (command.equals(DEACTIVATE)) {
service.deactivate(appId);
action = "Deactivated";
} else {
print("Unsupported command: %s", command);
return false;
}
print("%s-ed %s", command, appId.name());
print("%s %s", action, appId.name());
return true;
}