Commit 5a5169d8 authored by Ludovic Fauvet's avatar Ludovic Fauvet

minicontrol: don't stop the playback when hide event is received

MINICONTROL_VIEWER_EVENT_HIDE is called everytime the notification
drawer is closed so just ignore the event in this case.
parent 1ceb3df7
...@@ -136,7 +136,7 @@ static playback_service* ps = NULL; ...@@ -136,7 +136,7 @@ static playback_service* ps = NULL;
static void static void
mini_control_event_cb(minicontrol_viewer_event_e event_type, bundle *event_arg) mini_control_event_cb(minicontrol_viewer_event_e event_type, bundle *event_arg)
{ {
if (event_type == MINICONTROL_VIEWER_EVENT_HIDE || event_type == MINICONTROL_EVENT_REQUEST_HIDE) if (event_type == MINICONTROL_EVENT_REQUEST_HIDE)
playback_service_stop_notify(ps, true); playback_service_stop_notify(ps, true);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment