Fixed issue 40947
authorHimanshu Talwar <himanshu.t@samsung.com>
Mon, 10 Jun 2013 10:26:05 +0000 (15:56 +0530)
committerHimanshu Talwar <himanshu.t@samsung.com>
Mon, 10 Jun 2013 11:05:18 +0000 (16:35 +0530)
Change-Id: I7cdcf9e4c357e0f95687306cebfe64119546ef64
Signed-off-by: Himanshu Talwar <himanshu.t@samsung.com>
inc/GlFileListForm.h
src/GlAllListPanel.cpp
src/GlFileListForm.cpp

index 6c6fac9..9bba2a1 100644 (file)
@@ -54,6 +54,8 @@ public:
 
        virtual void OnSlideSettingPopUpItemSelected(int index);
 
+       void SetFooterState(bool state);
+
 private:
        result InitializeFooter(void);
 
index d16bfcf..a91d0e4 100644 (file)
@@ -357,6 +357,16 @@ AllListPanel::OnSceneActivatedN(const SceneId& previousSceneId,
                if (pFileListForm != null)
                {
                        pFileListForm->SetTitleText(__pPresentationModel->GetCurrentAlbumName());
+
+                       if( __itemCount == 0)
+                       {
+                               pFileListForm->SetFooterState(false);
+                       }
+                       else
+                       {
+                               pFileListForm->SetFooterState(true);
+                       }
+
                }
                __pPresentationModel->AddContentEventListener(pFileListForm);
        }
index 819464e..714335e 100644 (file)
@@ -327,3 +327,10 @@ FileListForm::OnSlideSettingPopUpItemSelected(int index)
                pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SETTING_MAIN));
        }
 }
+
+void
+FileListForm::SetFooterState(bool state)
+{
+       GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT,state);
+       GetFooter()->Invalidate(true);
+}