Resolved Mini-Controller rotation issue 73/70173/1
authorRahul Dadhich <r.dadhich@samsung.com>
Wed, 18 May 2016 11:59:07 +0000 (17:29 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Wed, 18 May 2016 11:59:07 +0000 (17:29 +0530)
Change-Id: I53fba82cd78a59e11a5dcfbc1664ad4f19e0b397
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/mp-main.c
src/widget/mp-minicontroller.c

index fbba55b..e584201 100755 (executable)
@@ -1870,7 +1870,9 @@ mp_device_orientation(app_event_info_h event_info, void *data)
        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
index f874847..b3ff86c 100755 (executable)
@@ -385,6 +385,9 @@ static void _quick_panel_cb(minicontrol_viewer_event_e event_type, bundle *event
                }
                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