1. focused_item value should be updated when gengrid is updated.
2. Use CViewMgr::PopView when context view is needed to be hided
Change-Id: I04a08f4370d08c316ff50ae839634e849629d593
Signed-off-by: Kim Tae Soo <taesoo46.kim@samsung.com>
m_AddCategoryItem(grid_item, t_CategoryType(), info);
elm_gengrid_item_class_free(grid_item);
+ t.focused_item = elm_gengrid_first_item_get(t.grid);
elm_object_part_content_set(Layout(),
MUSIC_PART_CATEGORY_GRID, t.grid);
catinfo = (CCategoryInfo *)t.ctxtinfo->context;
- if (!CViewMgr::GetInstance()->PushView(MUSIC_BASE_VIEW, NULL)) {
- _ERR(" viewmgr show failed ");
+ // Show base view
+ if (!CViewMgr::GetInstance()->PopView()) {
+ _ERR("CViewMgr::PopView to show BaseView is failed.");
return;
}