Fixed draw issue
authorHeeJu Kang <mobum.kang@samsung.com>
Mon, 7 Jan 2013 14:52:10 +0000 (23:52 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Mon, 7 Jan 2013 14:52:10 +0000 (23:52 +0900)
Change-Id: Idf333ae888e72cdbafece6b1c5480e0dfeab9689
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
src/FShell_LiveboxView.cpp
src/FShell_LiveboxView.h

index b724f91..2a1550e 100644 (file)
@@ -61,6 +61,7 @@ _LiveboxView::_LiveboxView(void)
        , __resizeFromRemote(false)
        , __updated(false)
        , __pixmap(-1)
+       , __first(true)
 {
        __pLiveboxViewManager = _LiveboxViewManager::GetInstance();
        SysTryReturnVoidResult(NID_UI_CTRL, __pLiveboxViewManager, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
@@ -396,6 +397,7 @@ void
 _LiveboxView::OnLiveboxPopupViewClosed(void)
 {
        __pLiveboxPopupView.reset(null);
+       __first = true;
 }
 
 void
@@ -407,6 +409,12 @@ _LiveboxView::OnDraw(void)
 void
 _LiveboxView::OnLiveboxUpdated(const Bitmap& bitmap, const Dimension& size)
 {
+       if (__pLiveboxPopupView && __first)
+       {
+               __first = false;
+               return;
+       }
+       
        __resizeFromRemote = true;
        SetSize(size);
        __resizeFromRemote = false;
index 6ce119b..13d6e9e 100644 (file)
@@ -150,6 +150,7 @@ private:
                }
        };
        std::unique_ptr<Ecore_Event_Handler, _EcoreEventHandlerDeleter> __pPixmapEventHandler;
+       bool __first;
 }; // _LiveboxView
 
 }} // Tizen::Shell