From 1fa9924f16ec0c041552c93c033d477494b76392 Mon Sep 17 00:00:00 2001 From: Kyeonghun Lee Date: Mon, 1 Aug 2016 11:11:53 +0900 Subject: [PATCH] resolve TSAM-6666: missing code for failed notification added Change-Id: Ica5a81b0b061f3439465ba4bce6f7146cb4fa61e Signed-off-by: Kyeonghun Lee --- externals/MsgNotificationWrapper.cpp | 6 ++++++ framework/main.cpp | 1 + include/externals/MsgNotificationWrapper.h | 2 ++ manager/src/msg-manager.cpp | 2 ++ 4 files changed, 11 insertions(+) diff --git a/externals/MsgNotificationWrapper.cpp b/externals/MsgNotificationWrapper.cpp index c3b59ac..e3eff0b 100755 --- a/externals/MsgNotificationWrapper.cpp +++ b/externals/MsgNotificationWrapper.cpp @@ -448,3 +448,9 @@ msg_error_t MsgInsertTicker(const char* pTickerMsg, const char* pLocaleTickerMsg #endif /* MSG_WEARABLE_PROFILE */ return err; } + + +void MsgInitMsgMgr() +{ + msg_launch_app(MSG_MGR_APP_ID, NULL); +} diff --git a/framework/main.cpp b/framework/main.cpp index f025111..c0550b4 100755 --- a/framework/main.cpp +++ b/framework/main.cpp @@ -63,6 +63,7 @@ void* InitMsgServer(void*) } MsgInitSensor(); + MsgInitMsgMgr(); /* plugin manager initialize */ MsgPluginManager::instance()->initialize(); diff --git a/include/externals/MsgNotificationWrapper.h b/include/externals/MsgNotificationWrapper.h index cfc27a3..7a59dd9 100755 --- a/include/externals/MsgNotificationWrapper.h +++ b/include/externals/MsgNotificationWrapper.h @@ -113,4 +113,6 @@ void MsgSoundPlayStart(const MSG_ADDRESS_INFO_S *pAddrInfo, MSG_SOUND_TYPE_T sou void MsgRefreshAllNotification(bool bWithSimNoti, bool bFeedback, msg_active_notification_type_t active_type); +void MsgInitMsgMgr(); + #endif diff --git a/manager/src/msg-manager.cpp b/manager/src/msg-manager.cpp index b358d5e..63aaab7 100644 --- a/manager/src/msg-manager.cpp +++ b/manager/src/msg-manager.cpp @@ -256,6 +256,8 @@ void _refresh_noti_func(app_control_h app_control) MSG_MGR_DEBUG("type [%s]", type); if (g_strcmp0(type, "normal") == 0) noti_type = MSG_MGR_NOTI_TYPE_NORMAL; + else if (g_strcmp0(type, "failed") == 0) + noti_type = MSG_MGR_NOTI_TYPE_FAILED; g_free(type); } else { -- 2.7.4