The view was not updating when Show() was called whenever
new window is launched. This patch fixes this issue by updating
the view everytime Show() is called and new view is shared back
to be overwritten over the previous view and now the tct behaviour
app works fine.
Change-Id: I0b9dc652612d7999f5f0539784e747cf6cb5205f
Signed-off-by: sidpaswan <s.paswan@samsung.com>
Evas_Object* WRTNativeWindowOffScreen::GetEflMainLayout(
WRTNativeWindow* native_window) {
- if (!efl_main_layout_) {
- auto web_contents_impl =
- static_cast<content::WebContentsImpl*>(native_window->GetWebContents());
- efl_main_layout_ = web_contents_impl->GetEflMainLayout();
- }
+ auto web_contents_impl =
+ static_cast<content::WebContentsImpl*>(native_window->GetWebContents());
+ efl_main_layout_ = web_contents_impl->GetEflMainLayout();
return efl_main_layout_;
}