[Verification]
Code complies without errors
Methods are tested in node
Change-Id: Ia42924ac43e58dfa2e2eb8d956af1a79e42779a6
Signed-off-by: Mariusz Polasinski <m.polasinski@samsung.com>
bool is_3D_enabled() {
LOGD("Enter");
- bool is_supported = true;
- int ret = system_info_get_value_bool(
- SYSTEM_INFO_KEY_3D_EFFECT_SUPPORTED,
+ int is_supported = -1;
+ int ret = system_info_get_value_int(
+ SYSTEM_INFO_KEY_3D_SUPPORT,
&is_supported);
if (SYSTEM_INFO_ERROR_NONE != ret) {
std::string message = "'system_info' error while "
LOGE("%s", message.c_str());
throw common::UnknownException(message);
}
- return is_supported;
+ return is_supported == 1;
}
} // namespace