From d35cefbb0db001d35ec1cacc87c47cc694389846 Mon Sep 17 00:00:00 2001 From: Rahul Varna Date: Tue, 20 Aug 2013 16:54:45 +0530 Subject: [PATCH] Removed footer from ImageViewer:N_SE-49146 Signed-off-by: Rahul Varna --- project/src/MediaPlayerForm.cpp | 4 +++- project/src/Player/VideoRecorderPlayerForm.cpp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/project/src/MediaPlayerForm.cpp b/project/src/MediaPlayerForm.cpp index d10c922..5336777 100644 --- a/project/src/MediaPlayerForm.cpp +++ b/project/src/MediaPlayerForm.cpp @@ -209,10 +209,12 @@ MediaPlayerForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSce if (pMediaType->Equals(L"AUDIO", false)) { __isMediaAudio = true; + SetFormStyle(FORM_STYLE_INDICATOR | FORM_STYLE_NORMAL | FORM_STYLE_HEADER | FORM_STYLE_FOOTER); } else if (pMediaType->Equals(L"VIDEO", false)) { __isMediaVideo = true; + SetFormStyle(FORM_STYLE_INDICATOR | FORM_STYLE_NORMAL | FORM_STYLE_HEADER | FORM_STYLE_FOOTER); } else if (pMediaType->Equals(L"IMAGE", false)) { @@ -317,7 +319,7 @@ bool MediaPlayerForm::Initialize(void) { result r = E_SUCCESS; - r = Form::Construct(FORM_STYLE_INDICATOR | FORM_STYLE_NORMAL | FORM_STYLE_HEADER | FORM_STYLE_FOOTER); + r = Form::Construct(FORM_STYLE_INDICATOR | FORM_STYLE_NORMAL | FORM_STYLE_HEADER); TryReturn(r == E_SUCCESS, false,"[%s] Create() has failed", GetErrorMessage(r)); return true; diff --git a/project/src/Player/VideoRecorderPlayerForm.cpp b/project/src/Player/VideoRecorderPlayerForm.cpp index 4c5f694..2bbc308 100644 --- a/project/src/Player/VideoRecorderPlayerForm.cpp +++ b/project/src/Player/VideoRecorderPlayerForm.cpp @@ -715,9 +715,13 @@ VideoRecorderPlayerForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base:: r = StartVideoRecorder(); TryCatch(r == E_SUCCESS, ,"[%s] StartVideoRecorder failed", GetErrorMessage(r)); + AppLog("Recorder started"); + r = StartPlayer(); TryCatch(r == E_SUCCESS, ,"[%s] StartPlayer failed", GetErrorMessage(r)); + AppLog("Player started"); + SetFooterItem(0, L"Stop", ID_BUTTON_STOP); } -- 2.7.4