Fix for N_SE-49387
[apps/osp/Calendar.git] / src / ClEventSearcherForm.cpp
index baca8e5..ed24387 100644 (file)
@@ -130,6 +130,7 @@ EventSearcherForm::OnInitializing(void)
        __pGroupedListViewEvents->AddGroupedListViewItemEventListener(*this);
 
        SetFormBackEventListener(this);
+       Tizen::System::SettingInfo::AddSettingEventListener(*this);
 
        __pSharePopup = new (std::nothrow) SharePopup();
        __pSharePopup->Initialize();
@@ -174,6 +175,7 @@ EventSearcherForm::OnTerminating(void)
        {
                __pTwoButtonPopup->Destroy();
        }
+       Tizen::System::SettingInfo::RemoveSettingEventListener(*this);
        return E_SUCCESS;
 }
 
@@ -420,6 +422,15 @@ EventSearcherForm::OnSceneDeactivated(const SceneId& currentSceneId, const Scene
 }
 
 void
+EventSearcherForm::OnSettingChanged(Tizen::Base::String& key)
+{
+       if (key.Equals(KEY_SYSTEM_DATE,false))
+       {
+               __pGroupedListViewEvents->UpdateList();
+       }
+}
+
+void
 EventSearcherForm::OnKeypadWillOpen(Control& source)
 {
 }