Fixed TSAM-5556 Call app icon still display number of miss call after already opening... 58/76858/1 submit/tizen/20160627.142241
authorAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Mon, 27 Jun 2016 12:26:35 +0000 (15:26 +0300)
committerAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Mon, 27 Jun 2016 12:26:35 +0000 (15:26 +0300)
Change-Id: Ib9e63790d80a9f39eed7fb6c01738d9981fc5ad2
Signed-off-by: Aleksandr Sapozhnik <a.sapozhnik@samsung.com>
contacts-app/src/OperationDefaultController.cpp
lib-logs/inc/Logs/List/LogsView.h

index f600cb6..a8a58ef 100644 (file)
@@ -69,6 +69,7 @@ void OperationDefaultController::onRequest(Operation operation, app_control_h re
        } else if (appId && strcmp(appId, APP_CONTROL_PHONE_APPID) == 0) {
                if (getBadgeCount(APP_CONTROL_PHONE_APPID) > 0) {
                        selectedTab = TabLogs;
+                       static_cast<Logs::List::LogsView *>(m_Tabs[TabLogs])->resetMissedCalls();
                } else {
                        selectedTab = getLastTab();
                }
index c95b832..301fe5f 100644 (file)
@@ -59,6 +59,11 @@ namespace Logs
                        LogsView(FilterType filterType = FilterAll);
                        virtual ~LogsView() override;
 
+                       /**
+                        * @brief Reset missed calls
+                        */
+                       void resetMissedCalls();
+
                private:
                        virtual Evas_Object *onCreate(Evas_Object *parent) override;
                        virtual void onCreated() override;
@@ -66,7 +71,6 @@ namespace Logs
                        virtual void onMenuPressed() override;
                        virtual void onSelectAllInsert(Ui::GenlistItem *item) override;
 
-                       void resetMissedCalls();
                        void fillLayout();
                        void updateLayout(bool isEmpty);
                        Evas_Object *createNoContentsLayout(Evas_Object *parent);