Add the exceptions for checking the request type 44/70844/1 submit/tizen/20160524.073932
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 23 May 2016 04:37:39 +0000 (13:37 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 23 May 2016 04:40:40 +0000 (13:40 +0900)
Change-Id: I066337944d7a029fecbab7c1d15dc7d21d7ed7d3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launch.c

index fa9914a..5b7b761 100644 (file)
@@ -301,10 +301,18 @@ int app_request_to_launchpad_for_uid(int cmd, const char *appid, bundle *kb, uid
        bundle_add(kb, AUL_K_APPID, appid);
        __set_stime(kb);
 
-       if (cmd == APP_START_ASYNC)
-               ret = app_send_cmd_with_queue_noreply_for_uid(AUL_UTIL_PID, uid, cmd, kb);
-       else
-               ret = app_send_cmd_with_queue_for_uid(AUL_UTIL_PID, uid, cmd, kb);
+       switch (cmd) {
+       case APP_START_ASYNC:
+       case APP_PAUSE:
+       case APP_PAUSE_BY_PID:
+               ret = app_send_cmd_with_queue_noreply_for_uid(AUL_UTIL_PID,
+                               uid, cmd, kb);
+               break;
+       default:
+               ret = app_send_cmd_with_queue_for_uid(AUL_UTIL_PID, uid, cmd,
+                               kb);
+               break;
+       }
 
        _D("launch request result : %d", ret);
        if (ret == AUL_R_LOCAL) {