Fix setting provider
authorJoohyun Kim <joohyune.kim@samsung.com>
Mon, 26 Aug 2013 08:08:23 +0000 (17:08 +0900)
committerJoohyun Kim <joohyune.kim@samsung.com>
Mon, 26 Aug 2013 08:08:23 +0000 (17:08 +0900)
Change-Id: If96dd6201dcbdec6c49e94c6e864da8f99120029
Signed-off-by: Joohyun Kim <joohyune.kim@samsung.com>
src/system-server/setting/providers/FSys_SettingLocaleProvider.cpp

index 317b4ac..a370116 100644 (file)
@@ -578,12 +578,10 @@ _SettingLocaleProvider::SettingEventRuntimeInfo(runtime_info_key_e key, void* us
                settingKey = _LOCALE_TIME_FORMAT;
                pSettingInfo->AnnounceSettingEvent(settingKey);
                settingKey = _LOCALE_COUNTRY;
-               pSettingInfo->AnnounceSettingEvent(settingKey);
        }
        else if(key == RUNTIME_INFO_KEY_LANGUAGE)
        {
-               settingKey.Append(_LOCALE_LANGUAGE);
-               pSettingInfo->AnnounceSettingEvent(settingKey);
+               settingKey = _LOCALE_LANGUAGE;
        }
        else if(key == RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED)
        {
@@ -593,6 +591,10 @@ _SettingLocaleProvider::SettingEventRuntimeInfo(runtime_info_key_e key, void* us
                pSettingInfo->AnnounceSettingEvent(settingKey);
                settingKey = _LOCALE_TIME_FORMAT_24HOUR;
        }
+       else
+       {
+               return;
+       }
        r = pSettingInfo->AnnounceSettingEvent(settingKey);
        SysTryReturnVoidResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, "It is failed to send the event[%ls].", settingKey.GetPointer());
 }