TizenRefApp-7054 Text character counter has view "0/0" 61/86661/3
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Fri, 2 Sep 2016 08:08:30 +0000 (11:08 +0300)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Fri, 2 Sep 2016 09:07:01 +0000 (12:07 +0300)
Change-Id: I9fb492b1ba75a26dd0f6e9c1b655da9b1be77277
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
src/Conversation/Body/Controller/inc/Body.h
src/Conversation/Body/Controller/src/Body.cpp

index 4ab041f..2ea4fa4 100644 (file)
@@ -123,7 +123,7 @@ namespace Msg
             ConvList &m_ConvList;
             std::string m_MmsTextFilePath;
             MsgTextMetric m_TextMetric;
-            bool m_TextMetricUpdated;
+            bool m_TextMetricNeedUpdate;
             int m_Utf8TextSize;
     };
 
index cfe4670..01f8ebf 100644 (file)
@@ -52,7 +52,7 @@ Body::Body(Evas_Object *parent, App &app, WorkingDirRef workingDir, ConvList &co
     , m_AutoFocusForAttachments(true)
     , m_ConvList(convList)
     , m_TextMetric()
-    , m_TextMetricUpdated(false)
+    , m_TextMetricNeedUpdate(true)
     , m_Utf8TextSize(0)
 {
     m_AttachmentHandler.setListener(this);
@@ -153,12 +153,12 @@ void Body::setMmsRecipFlag(bool value)
 
 void Body::updateTextMetricIfNeeded()
 {
-    if(m_TextMetricUpdated)
+    if(m_TextMetricNeedUpdate)
     {
         std::string text = getPlainUtf8Text();
         m_Utf8TextSize = text.length();
         MsgEngine::calculateTextMetric(text, m_TextMetric);
-        m_TextMetricUpdated = false;
+        m_TextMetricNeedUpdate = false;
     }
 }
 
@@ -505,7 +505,7 @@ void Body::notifyContentChanged()
 
 void Body::onContentChanged()
 {
-    m_TextMetricUpdated = true;
+    m_TextMetricNeedUpdate = true;
     notifyContentChanged();
 }