: launched_(false),
debug_mode_(false),
verbose_mode_(false),
+ lang_changed_mode_(false),
ewk_context_(
ewk_context_new_with_injected_bundle_path(INJECTED_BUNDLE_PATH)),
has_ownership_of_ewk_context_(true),
}
void WebApplication::OnLanguageChanged() {
+ lang_changed_mode_ = true;
locale_manager_->UpdateSystemLocale();
ewk_context_cache_clear(ewk_context_);
auto it = view_stack_.begin();
LOGGER(DEBUG) << "Rendered";
splash_screen_->HideSplashScreen(SplashScreen::HideReason::RENDERED);
- // Show window after frame rendered.
- window_->Show();
- window_->Active();
+ // Do not show(), active() for language change
+ if(lang_changed_mode_ == false){
+ // Show window after frame rendered.
+ window_->Show();
+ window_->Active();
+ }
+ else{
+ lang_changed_mode_ = false;
+ }
}
#ifdef MANUAL_ROTATE_FEATURE_SUPPORT