From: Himanshu Talwar Date: Mon, 10 Jun 2013 10:26:05 +0000 (+0530) Subject: Fixed issue 40947 X-Git-Tag: submit/tizen_2.2/20130714.134410~60^2 X-Git-Url: http://review.tizen.org/git/?p=apps%2Fosp%2FGallery.git;a=commitdiff_plain;h=048a11e217cee64cc49599c6c2394603d2ba46e6 Fixed issue 40947 Change-Id: I7cdcf9e4c357e0f95687306cebfe64119546ef64 Signed-off-by: Himanshu Talwar --- diff --git a/inc/GlFileListForm.h b/inc/GlFileListForm.h index 6c6fac9..9bba2a1 100644 --- a/inc/GlFileListForm.h +++ b/inc/GlFileListForm.h @@ -54,6 +54,8 @@ public: virtual void OnSlideSettingPopUpItemSelected(int index); + void SetFooterState(bool state); + private: result InitializeFooter(void); diff --git a/src/GlAllListPanel.cpp b/src/GlAllListPanel.cpp index d16bfcf..a91d0e4 100644 --- a/src/GlAllListPanel.cpp +++ b/src/GlAllListPanel.cpp @@ -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); } diff --git a/src/GlFileListForm.cpp b/src/GlFileListForm.cpp index 819464e..714335e 100644 --- a/src/GlFileListForm.cpp +++ b/src/GlFileListForm.cpp @@ -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); +}