| support(manifest) | switch-mode(manifest) | switch-mode(applied) |
|-------------------|-----------------------|----------------------|
| false | (ignored) | default |
| true | alive | alive |
| true | (not alive) | kill |
The case of support and switch-mode value written in maniest are ignored
Change-Id: I02b29c7c64ce726b2683811602a228b1749358f0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
return false;
}
- manifest->light_user_switch_mode =
- strdup(light_user_info->switch_mode() == "alive" ? "default" : "kill");
+ if (strcasecmp(light_user_info->support().c_str(), "true") != 0) {
+ manifest->light_user_switch_mode = strdup("default");
+ } else {
+ manifest->light_user_switch_mode = strdup(
+ strcasecmp(light_user_info->switch_mode().c_str(), "alive") == 0 ?
+ "alive" : "kill");
+ }
return true;
}