Fix bugs
[profile/tv/apps/native/filebrowser.git] / src / layouts / FbMusicLayout.cpp
index f3b0ea9..ede52f1 100644 (file)
@@ -12,6 +12,8 @@
 #include <CtxPopup.h>
 #include "FbBaseView.h"
 #include "FbMusicLayout.h"
+#include "../views/BaseView/Info.h"
+#include "common.h"
 
 
 struct SFbMusicLayout {
@@ -119,6 +121,7 @@ void CFbMusicLayout::t_OnShow(void)
 {
        elm_object_part_content_unset(m->eoBase, FBR_PART_CONTENT);
        elm_object_part_content_set(m->eoBase, FBR_PART_CONTENT, Layout()); 
+       CInfo::SetGroupIndex(E_GRP_MUSIC);
        m->pFileGrid->Update(m->updateFlag);
        m->updateFlag = false; // set default
        CBaseLayout::t_OnShow();
@@ -131,7 +134,7 @@ bool CFbMusicLayout::Create(CLayoutMgr *mgr, void *data)
        ASSERT(mgr);
 
        Evas_Object* layout = NULL;
-       
+
        _CREATE_BEGIN{
                _CHECK(m = new SFbMusicLayout)
                _CHECK(m->pLayoutMgr = mgr)
@@ -141,10 +144,10 @@ bool CFbMusicLayout::Create(CLayoutMgr *mgr, void *data)
                _CHECK(layout = elm_layout_add(m->eoBase))
                _CHECK(elm_layout_file_set(layout, EDJEFILE, FB_MUSIC_LAYOUT))
                _CHECK(t_CreateFileGrid(layout))
-               _COMMAND{ 
+               _COMMAND{
                        m->updateFlag = false;
                        elm_object_part_content_unset(m->eoBase, FBR_PART_CONTENT);
-                       elm_object_part_content_set(m->eoBase, FBR_PART_CONTENT, layout); 
+                       elm_object_part_content_set(m->eoBase, FBR_PART_CONTENT, layout);
                }
                _CHECK(CBaseLayout::Create(layout))
 
@@ -187,7 +190,7 @@ void CFbMusicLayout::SetFocus(Eina_Bool flag)
 void CFbMusicLayout::Action(void)
 {
        ASSERT(m);
-       
+
        return m->pFileGrid->Action();
 }