item_to_update->chk_status = !status;
//do not need delay for checks
elm_check_state_set(item_to_update->eo_check, item_to_update->chk_status);
+ SETTING_TRACE("item_to_update->chk_status:%d", item_to_update->chk_status);
+ if (item_to_update->chk_status) //rotation function is not blocked
+ {
+ SETTING_TRACE("Rotation function is on, it is necessary to adjust the device orientation");
+ int mode = APP_DEVICE_ORIENTATION_0;
+ mode = app_get_device_orientation();
+ elm_win_rotation_with_resize_set(ad->win_main, mode);
+ }
+
return;
} else if (!safeStrCmp(vconf_name, VCONFKEY_NFC_STATE)) {
SETTING_TRACE_DEBUG("%s updated", vconf_name);
SETTING_TRACE_BEGIN;
setting_main_appdata *ad = data;
+ int value = 0;
+ vconf_get_bool (VCONFKEY_SETAPPL_ROTATE_LOCK_BOOL, &value);
+ SETTING_TRACE("value:%d", value);
+ if (!value) //rotation function is not blocked
+ {
+ SETTING_TRACE("Rotation function is on, it is necessary to adjust the device orientation");
+ int mode = APP_DEVICE_ORIENTATION_0;
+ mode = app_get_device_orientation();
+ elm_win_rotation_with_resize_set(ad->win_main, mode);
+ }
+
#if SUPPORT_LIVEBOX_DEMO
char *ug_name = NULL;
if(b != NULL)