Fixed the DimmingManager
authorChoi Munseok <ms47.choi@samsung.com>
Mon, 10 Jun 2013 03:05:07 +0000 (12:05 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Mon, 10 Jun 2013 03:05:07 +0000 (12:05 +0900)
Change-Id: I3d453fe303ab7a9dcc895f3fe1fcf3016ff87e94
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_DimmingManager.cpp

index 4418b00..c3fd4e7 100644 (file)
@@ -137,6 +137,17 @@ _DimmingManager::UnRegisterWindow(_Window* pWindow)
 result
 _DimmingManager::CreateDimmingLayer(_Window* pWindow)
 {
+       if (!pWindow)
+       {
+               return E_SUCCESS;
+       }
+
+       _DimmingLayer* pPrevDimmingLayer = pWindow->GetDimmingLayer();
+       if (pPrevDimmingLayer)
+       {
+               return E_SUCCESS;
+       }
+
        result r = E_SUCCESS;
 
        _DimmingLayer* pDimmingLayer = new (std::nothrow) _DimmingLayer();