loader_lifecycle_callback_s callback;
callback.create = [](bundle* extra, int type, void* user_data) {
LOG(INFO) << "loader created";
- auto* content_main = static_cast<Loader*>(user_data)->content_main_;
- content_main->Initialize();
- content_main->main_delegate_->LoaderCreated();
+ ecore_idler_add(
+ [](void* data) {
+ LOG(INFO) << "ContentMain will be initialized in idler.";
+ auto* content_main = static_cast<WRTContentMain*>(data);
+ content_main->Initialize();
+ content_main->main_delegate_->LoaderCreated();
+ return ECORE_CALLBACK_CANCEL;
+ }, static_cast<Loader*>(user_data)->content_main_);
};
#if TIZEN_VERSION_AT_LEAST(6, 5, 0)
callback.prelaunch = [](int argc, char** argv, const char* app_path,