TizenRefApp-7344 NaviBar(title) and MsgBody are not updated when call message app... 60/90360/1
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 29 Sep 2016 12:46:40 +0000 (15:46 +0300)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 29 Sep 2016 12:46:40 +0000 (15:46 +0300)
Change-Id: Iaaf32953efd69321b17cb4b586e9b20c3c2d85db
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
src/Conversation/Main/Controller/src/Conversation.cpp

index 8744d6a85849d826c6446be577d22189ad922d92..771407a0f44ebbe8ce8f81f9381ae1236fd8a099 100644 (file)
@@ -151,6 +151,8 @@ void Conversation::execCmd(const AppControlDefaultRef &cmd)
     else
     {
         saveDraftMsg();
+        if(m_pBody)
+            m_pBody->clear();
     }
 
     if(cmd->getDefaultType() == AppControlDefault::SendFailedType)
@@ -308,6 +310,7 @@ void Conversation::setThreadId(ThreadId id, const std::string &searchWord, bool
         m_pConvList->setThreadId(m_ThreadId, searchWord);
 
     markAsRead();
+    updateNavibar();
     updateActiveNotifPolicy();
     checkAndSetMsgType(true);
 }
@@ -372,13 +375,12 @@ void Conversation::setMode(Mode mode)
 
 void Conversation::setNewMessageMode()
 {
-    m_Mode = NewMessageMode;
+    MSG_LOG("");
 
+    m_Mode = NewMessageMode;
     m_pLayout->showRecipEditMode(true);
     createRecipPanel(*m_pLayout);
     createContactList(*m_pLayout);
-    updateNavibar();
-
     m_pRecipPanel->update(m_ThreadId);
     m_pRecipPanel->showMbe(!m_pRecipPanel->isMbeEmpty());
     m_pRecipPanel->showEntry(true);
@@ -391,8 +393,6 @@ void Conversation::setConversationMode()
 
     m_Mode = ConversationMode;
     m_pLayout->showRecipEditMode(false);
-    updateNavibar();
-
     MsgAddressListRef addressList = getAddressList();
     if(addressList && addressList->getLength() > 1)
     {