MpList_t *list = data;
MP_CHECK(list);
+ struct appdata *ad = mp_util_get_appdata();
+ MP_CHECK(ad);
+
+ if (_mp_is_current_focus_available(ad) != 0) {
+ ERROR_TRACE
+ ("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret =
+ notification_status_message_post(dgettext
+ ("music-player",
+ message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]",
+ ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
+ return;
+ }
+
mp_list_item_data_t *item =
- (mp_list_item_data_t *) elm_object_item_data_get(gli);
+ (mp_list_item_data_t *) elm_object_item_data_get(gli);
MP_CHECK(item);
mp_play_control_shuffle_set(NULL, true);
mp_common_play_track_list_with_playlist_id(item, obj,
- list->playlist_id);
+ list->playlist_id);
return;
}