{
SETTING_TRACE_BEGIN;
setting_main_appdata *ad = data;
- int r;
if (ad == NULL || ad->win_main == NULL)
- return 0;
-
-#if 0
- switch (m) {
- case APPCORE_RM_PORTRAIT_NORMAL:
- r = 0;
- break;
- case APPCORE_RM_PORTRAIT_REVERSE:
- r = 180;
- break;
- case APPCORE_RM_LANDSCAPE_NORMAL:
- r = 270;
- break;
- case APPCORE_RM_LANDSCAPE_REVERSE:
- r = 90;
- break;
- default:
- r = -1;
- break;
- }
-#endif
- if (r >= 0)
- elm_win_rotation_with_resize_set(ad->win_main, r);
+ return;
+
+ elm_win_rotation_with_resize_set(ad->win_main, m);
}
#endif
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)