This patch resolves- 95/245095/1 submit/tizen/20201001.115740
authorJagrat Patidar <j1.patidar@samsung.com>
Thu, 1 Oct 2020 11:42:40 +0000 (17:12 +0530)
committerJagrat Patidar <j1.patidar@samsung.com>
Thu, 1 Oct 2020 11:42:40 +0000 (17:12 +0530)
JIRA TIZENIOT-2014 resolves track count issue in favorite list,
Adds relevant comments for minicontroller sliding event

Change-Id: I1bd1da6e4edf5692180d6a5a7b2de1e209a09f67
Signed-off-by: Jagrat Patidar <j1.patidar@samsung.com>
src/widget/mp-minicontroller.c
src/widget/mp-track-list.c

index 93a48bc0c222a9f18974bee2357a8e2ddd1f1e4e..3232f8e435ae61c90e6664dc6c4fbd81bba3a7c5 100755 (executable)
@@ -440,7 +440,13 @@ static void _quick_panel_cb(minicontrol_viewer_event_e event_type,
                        DEBUG_TRACE("Angle is : %d", angle);
                }
                if (!event_arg) {
-                       /* Closing music-player when minicontroller is swiped in quickpanel */
+                       /*
+                       Music-player need to be closed when user removes the mini-controller notification from quickpanel and 
+                       we have to use the MINICONTROL_VIEWER_EVENT_REPORT_ANGLE event to close because hide event is also being 
+                       emitted when quickpanel is closed/swipe up. So to differentiate between quickpanel close and notification remove 
+                       scenario we have to use the MINICONTROL_VIEWER_EVENT_REPORT_ANGLE with null bundle event_arg so that we close
+                       music player on correct scenario.
+                       */
                        _minicontroller_close_music();
                }
                mp_minicontroller_rotate(ad, angle);
index 65d853fd69e8f6d1be7bed7673b906d5f32b27a7..41f036389f09182f1e81be15f5f67d9192fb7070 100755 (executable)
@@ -1498,8 +1498,6 @@ static void _mp_track_list_update(void *thiz)
        }
        mp_evas_object_del(list->no_content);
        mp_evas_object_del(list->genlist);
-
 
        if (count) {
                /*create new genlist */
@@ -1570,6 +1568,10 @@ static void _mp_track_list_update(void *thiz)
        }
 
   NoContents:
+       if (((MpList_t *) list)->layout) {
+               elm_object_signal_emit(((MpList_t *) list)->layout, "control_hide_signal", "control_hide_source");
+       }
+
        elm_object_signal_emit(mp_all_get_tabbar_layout(), "default_signal", "default_source");
        list->hide_fastscroll(list);
        mp_evas_object_del(list->genlist);