Modify OnTimeZoneChangedCb function 55/304855/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 24 Jan 2024 10:08:40 +0000 (19:08 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 24 Jan 2024 10:08:57 +0000 (19:08 +0900)
Calling the callback function is removed. Because, the registration event
is not supported.

Change-Id: Ic84b7a8998552f7a30c2bdf13f68e861dd1b1c4a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-cpp/app_core_base.cc

index a45fc63a8d33558c7194e74c14b81993503bc9c2..05417a6ba69c86eb5775a8213f9d825425126feb 100644 (file)
@@ -793,19 +793,8 @@ void AppCoreBase::Impl::OnLowBatteryCb(keynode_t* key, void* data) {
 }
 
 void AppCoreBase::Impl::OnTimeZoneChangedCb(keynode_t* key, void* data) {
+  _W("TimeZoneChanged");
   tzset();
-  char* time_zone_id = vconf_keynode_get_str(key);
-  if (time_zone_id == nullptr) {
-    return;
-  }
-
-  char* time_zone = vconf_get_str(VCONFKEY_SETAPPL_TIMEZONE_INT);
-  if (time_zone != nullptr) {
-    AppCoreBase* base = reinterpret_cast<AppCoreBase*>(data);
-    base->impl_->InvokeCallback(std::string(time_zone) + "|" + time_zone_id,
-        IEvent::Type::TIME_ZONE_CHANGED);
-    free(time_zone);
-  }
 }
 
 void AppCoreBase::Impl::UnregisterRotationChangedEvent() {