Fix bugs
[profile/tv/apps/native/filebrowser.git] / src / layouts / FbPhotoLayout.cpp
index eb6729f..cfefd5a 100644 (file)
@@ -12,6 +12,8 @@
 #include <CtxPopup.h>
 #include "FbBaseView.h"
 #include "FbPhotoLayout.h"
+#include "../views/BaseView/Info.h"
+#include "common.h"
 
 
 struct SFbPhotoLayout {
@@ -119,6 +121,7 @@ void CFbPhotoLayout::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_PHOTO);
        m->pFileGrid->Update(m->updateFlag);
        m->updateFlag = false; // set default
        CBaseLayout::t_OnShow();
@@ -141,10 +144,10 @@ bool CFbPhotoLayout::Create(CLayoutMgr *mgr, void *data)
                _CHECK(layout = elm_layout_add(m->eoBase))
                _CHECK(elm_layout_file_set(layout, EDJEFILE, FB_PHOTO_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))
 
@@ -188,7 +191,7 @@ void CFbPhotoLayout::SetFocus(Eina_Bool flag)
 void CFbPhotoLayout::Action(void)
 {
        ASSERT(m);
-       
+
        return m->pFileGrid->Action();
 }