Change-Id: I53fba82cd78a59e11a5dcfbc1664ad4f19e0b397
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
eventfunc;
struct appdata *ad = (struct appdata *)data;
MP_CHECK(ad);
-
+ app_device_orientation_e orientation;
+ app_event_get_device_orientation(event_info, &orientation);
+ ad->quickpanel_angle = orientation;
#ifdef MP_FEATURE_LANDSCAPE
mp_view_mgr_post_event(GET_VIEW_MGR, MP_VIEW_ROTATE_START);
#endif
}
ad->is_sdcard_removed = false;
}
+ if (event_type == (minicontrol_viewer_event_e)MINICONTROL_VIEWER_EVENT_REPORT_ANGLE) {
+ mp_minicontroller_rotate(ad, ad->quickpanel_angle);
+ }
}
static void