Opacify animation removed
authorHeeJu Kang <mobum.kang@samsung.com>
Sun, 17 Feb 2013 07:50:56 +0000 (16:50 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Sun, 17 Feb 2013 07:50:56 +0000 (16:50 +0900)
Change-Id: Iea270051c50e805439d14550b9503b76076f21b1
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
src/FShell_LiveboxFrame.cpp
src/FShell_LiveboxPopup.cpp
src/FShell_LiveboxPopupView.cpp

index b94ccc1..f76c774 100644 (file)
@@ -130,6 +130,15 @@ _LiveboxFrame::Initialize(const Dimension& size)
 
        __pLiveboxLayer = move(pLayer);
        __pLiveboxFrameRootVisualElement = __pLiveboxLayer->GetRootVisualElement();
+
+       _VisualElement* pVisualElement = GetVisualElement();
+       r = GetLastResult();
+       SysTryReturn(NID_UI_CTRL, pVisualElement, r, r, "[%s] Propagating.", GetErrorMessage(r));
+
+       pVisualElement->SetClipChildrenEnabled(false);
+       pVisualElement->SetShowState(true);
+
+       __pLiveboxFrameRootVisualElement->AttachChild(*pVisualElement);
 #endif // MULTI_WINDOW
 
        Rectangle bounds(0, 0, liveboxSize.width, liveboxSize.height);
@@ -149,17 +158,8 @@ _LiveboxFrame::Initialize(const Dimension& size)
        __pLiveboxFrameRootVisualElement->SetBounds(fBounds);
        __pLiveboxFrameRootVisualElement->SetShowState(false);
 
-       _VisualElement* pVisualElement = GetVisualElement();
-       r = GetLastResult();
-       SysTryReturn(NID_UI_CTRL, pVisualElement, r, r, "[%s] Propagating.", GetErrorMessage(r));
-
-       __pLiveboxFrameRootVisualElement->AttachChild(*pVisualElement);
-
        SetBackgroundColor(Color(0, 0, 0, 0));
 
-       pVisualElement->SetClipChildrenEnabled(false);
-       pVisualElement->SetShowState(true);
-
        r = __pEventManager->RegisterTouchEventHandler(*this);
        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
index acb1d71..fe5b9cd 100644 (file)
@@ -204,6 +204,16 @@ _LiveboxPopup::Initialize(const Dimension& size)
 
        __pLiveboxPopupLayer = move(pLayer);
        __pLiveboxPopupRootVisualElement = __pLiveboxPopupLayer->GetRootVisualElement();
+
+       _VisualElement* pVisualElement = GetVisualElement();
+       r = GetLastResult();
+       SysTryReturn(NID_UI_CTRL, pVisualElement, r, r, "[%s] Propagating.", GetErrorMessage(r));
+
+       pVisualElement->SetClipChildrenEnabled(false);
+       pVisualElement->SetShowState(true);
+       pVisualElement->SetRenderOperation(_VisualElement::RENDER_OPERATION_COPY);
+
+       __pLiveboxPopupRootVisualElement->AttachChild(*pVisualElement);
 #endif // MULTI_WINDOW
 
        Rectangle bounds(0, 0, size.width, size.height);
@@ -223,17 +233,8 @@ _LiveboxPopup::Initialize(const Dimension& size)
        __pLiveboxPopupRootVisualElement->SetBounds(fBounds);
        __pLiveboxPopupRootVisualElement->SetShowState(false);
 
-       _VisualElement* pVisualElement = GetVisualElement();
-       r = GetLastResult();
-       SysTryReturn(NID_UI_CTRL, pVisualElement, r, r, "[%s] Propagating.", GetErrorMessage(r));
-
-       __pLiveboxPopupRootVisualElement->AttachChild(*pVisualElement);
-
        SetBackgroundColor(Color(0, 0, 0, 0));
 
-       pVisualElement->SetClipChildrenEnabled(false);
-       pVisualElement->SetShowState(true);
-
        __pEventManager->RegisterTouchEventHandler(*this);
        r = GetLastResult();
        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
index f8f4dc5..82bc204 100644 (file)
@@ -252,7 +252,7 @@ _LiveboxPopupView::PlayAnimation(bool open)
        animation1.SetDuration(ANIMATION1_DURATION);
 
        animationGroup.AddAnimation(animation1);
-
+/*
        float startOpacity = 0.0f;
        float endOpacity = 1.0f;
        if (!open)
@@ -268,7 +268,7 @@ _LiveboxPopupView::PlayAnimation(bool open)
        animation2.SetDuration(ANIMATION2_DURATION);
 
        animationGroup.AddAnimation(animation2);
-
+*/
        String keyName = (open) ? OPEN_ANIMATION : CLOSE_ANIMATION;
        pVisualElement->AddAnimation(keyName, animationGroup);
 }