{
// Changed to return a different window handle after ReplaceWindow is called
// just for backward compatibility to make the test case pass
- return mMainWindowReplaced ? Dali::Window::New( PositionSize(), "ReplacedWindow" ) : mMainWindow;
+ return mMainWindowReplaced ? Dali::Window() : mMainWindow;
}
// Stereoscopy
mAdaptor = NULL;
}
- if ( mEventHandler )
- {
- mEventHandler->SetRotationObserver( nullptr );
- }
+ // Do we need to do it?
+ mEventHandler->SetRotationObserver( nullptr );
}
void Window::Initialize(const PositionSize& positionSize, const std::string& name, const std::string& className)