Fix focus error: When PlaybackView is popped in case of it was pushed by ContextView. 79/37179/1
authorKim Tae Soo <taesoo46.kim@samsung.com>
Fri, 20 Mar 2015 08:27:00 +0000 (17:27 +0900)
committerKim Tae Soo <taesoo46.kim@samsung.com>
Fri, 20 Mar 2015 08:27:00 +0000 (17:27 +0900)
Change-Id: Id2a898368c1b6b02c7986fba0c7c02e40b7e6281
Signed-off-by: Kim Tae Soo <taesoo46.kim@samsung.com>
src/main.cpp
src/views/context-view.cpp

index e6df0a0..a98f343 100644 (file)
@@ -68,6 +68,9 @@ private:
 
        static void sm_CbPopView(void* cookie, const char *szDestroyViewId, CBaseView *pShowView)
        {
+               const char *viewId = pShowView->ViewId();
+               if (!strcmp(viewId, MUSIC_CONTEXT_VIEW))
+                       CViewMgr::GetInstance()->UpdateView(viewId, NULL);
        }
 
 protected:
index 35fb02b..27e0591 100644 (file)
@@ -1329,6 +1329,7 @@ void CContextView::t_OnUpdate(void *data)
        ASSERT(m);
 
        if (!data)
+               m_CreateFullView();
                return;
 
        SParcel *parcel = (SParcel *)data;