Do not refresh taken id if acquire focus block by policy 78/111578/1
authorWu Nannan <nannan.wu@samsung.com>
Fri, 20 Jan 2017 09:23:55 +0000 (17:23 +0800)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 23 Jan 2017 01:55:10 +0000 (10:55 +0900)
[Version] 0.10.83
[Profile] Common
[Issue Type] Bug fix
[Problem] music not resume after ringtone call end , if request play during ringtone

Change-Id: I42f2c0b49ab7992d5e541243eacf940b1b5c8401

focus_server/mm_sound_mgr_focus.c
packaging/libmm-sound.spec

index c0e1c08..54b9a06 100644 (file)
@@ -964,13 +964,12 @@ int mm_sound_mgr_focus_request_acquire(const _mm_sound_mgr_focus_param_t *param)
                /* do watch callback due to the status of mine */
                if (need_to_trigger_watch_cb)
                        _mm_sound_mgr_focus_do_watch_callback((focus_type_e)param->request_type, FOCUS_COMMAND_ACQUIRE, my_node, param);
-       }
-
-       /* update taken information */
-       for (i = 0; i < NUM_OF_STREAM_IO_TYPE; i++) {
-               if (param->request_type & (i+1)) {
-                       UPDATE_FOCUS_TAKEN_INFO(by_id, my_node, 0, 0, false);
-                       UPDATE_FOCUS_TAKEN_INFO(backup, my_node, 0, 0, false);
+               /* update taken information */
+               for (i = 0; i < NUM_OF_STREAM_IO_TYPE; i++) {
+                       if (param->request_type & (i+1)) {
+                               UPDATE_FOCUS_TAKEN_INFO(by_id, my_node, 0, 0, false);
+                               UPDATE_FOCUS_TAKEN_INFO(backup, my_node, 0, 0, false);
+                       }
                }
        }
 
index e174f58..2907593 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.10.82
+Version:    0.10.83
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0