EINTERN void
e_mod_rot_settings_init(void)
{
+ int res = 0;
int rot = 0;
if (vconf_get_bool(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, &rot) == VCONF_OK)
{
- vconf_notify_key_changed(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL,
- _e_mod_rot_settings_cb_autorotate,
- NULL);
+ res = vconf_notify_key_changed(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL,
+ _e_mod_rot_settings_cb_autorotate,
+ NULL);
+ if (res != VCONF_OK)
+ {
+ ELOGF("ROTATION", "Could not register AUTO_ROTATE_SCREEN callback. res: %d",
+ NULL, res);
+ }
+
// if vconf auto_rotate is false, rotation is blocked
if (rot == 0) _e_mod_rot_settings_lock(rot);
}