Fix for N_SE-49387
[apps/osp/Calendar.git] / src / ClListPanel.cpp
index bc436f1..f656693 100644 (file)
@@ -154,6 +154,7 @@ ListPanel::OnInitializing(void)
        __pGroupedListViewEventsList->SetTextOfEmptyList(ResourceManager::GetString(IDS_CLD_BODY_NO_EVENTS));
        __pGroupedListViewEventsList->SetBitmapOfEmptyList(ResourceManager::GetBitmapN(IDB_LIST_VIEW_NO_CONTENTS_TEXT));
        __pGroupedListViewEventsList->AddGroupedListViewItemEventListener(*this);
+       Tizen::System::SettingInfo::AddSettingEventListener(*this);
 
        __pDateFormatter = ResourceManager::CreateDateFormatterN(DATE_TIME_STYLE_SHORT);
 
@@ -199,6 +200,7 @@ ListPanel::OnTerminating(void)
                __pGoToDatePopup->Destroy();
        }
 
+       Tizen::System::SettingInfo::RemoveSettingEventListener(*this);
        return E_SUCCESS;
 }
 
@@ -658,6 +660,15 @@ ListPanel::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& next
 }
 
 void
+ListPanel::OnSettingChanged(Tizen::Base::String& key)
+{
+       if (key.Equals(KEY_SYSTEM_DATE,false))
+       {
+               __pGroupedListViewEventsList->UpdateList();
+       }
+}
+
+void
 ListPanel::OnActionPerformed(const Control& source, int actionId)
 {
 }