resolve TSAM-6666: missing code for failed notification added 27/82127/2
authorKyeonghun Lee <kh9090.lee@samsung.com>
Mon, 1 Aug 2016 02:11:53 +0000 (11:11 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Wed, 3 Aug 2016 04:36:37 +0000 (13:36 +0900)
Change-Id: Ica5a81b0b061f3439465ba4bce6f7146cb4fa61e
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
externals/MsgNotificationWrapper.cpp
framework/main.cpp
include/externals/MsgNotificationWrapper.h
manager/src/msg-manager.cpp

index c3b59ac..e3eff0b 100755 (executable)
@@ -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);
+}
index f025111..c0550b4 100755 (executable)
@@ -63,6 +63,7 @@ void* InitMsgServer(void*)
                }
 
                MsgInitSensor();
+               MsgInitMsgMgr();
 
                /* plugin manager initialize */
                MsgPluginManager::instance()->initialize();
index cfc27a3..7a59dd9 100755 (executable)
@@ -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
index b358d5e..63aaab7 100644 (file)
@@ -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 {