Send missing noti messages 63/245363/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 8 Oct 2020 00:32:56 +0000 (09:32 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 8 Oct 2020 00:32:56 +0000 (09:32 +0900)
To handle implicit launch properly, AMD should saves default app
information when it's changed.

Change-Id: I2c3d337e0550fde6ac19cc8430f3be460c0c2d07
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_app_property.c

index 7e0180803aa1c36f95f80bfdf54bf2ead820ec8d..d7d1b80f7d8fc43e5b2641104e601f1e178e7a52 100644 (file)
 #include <bundle.h>
 #include <bundle_internal.h>
 
-#include "amd_util.h"
 #include "amd_app_property.h"
-#include "amd_request.h"
 #include "amd_appinfo.h"
 #include "amd_cynara.h"
+#include "amd_noti.h"
+#include "amd_request.h"
+#include "amd_util.h"
 
 struct metadata_filter {
        char *key;
@@ -1099,6 +1100,9 @@ static int __dispatch_app_set_app_control_default_app(request_h req)
        prop = _app_property_find(_request_get_target_uid(req));
        _app_property_cache_invalidate(prop);
        _request_send_result(req, 0);
+
+       _noti_send(AMD_NOTI_MSG_APP_PROPERTY_SET_APP_CONTROL_DEFAULT_APP,
+                       (int)_request_get_target_uid(req), 0, NULL, kb);
        return 0;
 }
 
@@ -1121,6 +1125,10 @@ static int __dispatch_app_unset_app_control_default_app(request_h req)
        prop = _app_property_find(_request_get_target_uid(req));
        _app_property_cache_invalidate(prop);
        _request_send_result(req, 0);
+
+       _noti_send(AMD_NOTI_MSG_APP_PROPERTY_UNSET_APP_CONTROL_DEFAULT_APP,
+                       (int)_request_get_target_uid(req), 0, (void *)appid,
+                       NULL);
        return 0;
 }