- Do not check previous mode
Change-Id: Ie3adf9e1a12636a2d33cf8a2ab4416381b137678
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
bundle_get_str(envelope, "__AMBIENT_MODE__", &mode);
bundle_get_str(envelope, "__AMBIENT_EXTRA__", &extra);
- if ((mode == NULL) || (__context.ambient_mode == atoi(mode))) {
- _E("invalid state (%d) (%s)", __context.ambient_mode, mode);
+ if (mode == NULL) {
+ _E("mode is nullptr");
return 0;
}
__context.extra = bundle_decode((bundle_raw *)extra, strlen(extra));