Disable setting button during recording :N_SE-49599,N_SE-49521
authorRahul Varna <rahul.varna@samsung.com>
Mon, 26 Aug 2013 05:06:26 +0000 (10:36 +0530)
committerRahul Varna <rahul.varna@samsung.com>
Mon, 26 Aug 2013 05:06:26 +0000 (10:36 +0530)
Signed-off-by: Rahul Varna <rahul.varna@samsung.com>
project/src/Recorder/AudioRecorderForm.cpp
project/src/Recorder/VideoRecorderForm.cpp

index b72a431..25c04b8 100644 (file)
@@ -1417,7 +1417,6 @@ void
 AudioRecorderForm::OnAudioRecorderStarted(result r)
 {
        AppLog("Enter result = %s", GetErrorMessage(r));
-       ShowFooterItem(0, true);
        ShowFooterItem(1, true);
 }
 
index 43ca827..7ca0758 100644 (file)
@@ -4651,6 +4651,17 @@ VideoRecorderForm::OnVideoRecorderClosed(result r)
 {
        AppLog("OnVideoRecorderClosed");
 
+       ShowFooterItem(0, true);
+       if (__cameraCount > 1)  //if camera count is 2 then only use secondary camera.
+       {
+               ShowFooterItem(1, true);
+       }
+       else
+       {
+               ShowFooterItem(1, false);
+       }
+       ShowFooterItem(2, true);
+
        switch(__cameraError)
        {
                case CAMERA_ERROR_NONE:
@@ -4737,15 +4748,6 @@ void
 VideoRecorderForm::OnVideoRecorderStarted(result r)
 {
        AppLog("OnVideoRecorderStarted");
-       ShowFooterItem(0, true);
-       if (__cameraCount > 1)  //if camera count is 2 then only use secondary camera.
-       {
-               ShowFooterItem(1, true);
-       }
-       else
-       {
-               ShowFooterItem(1, false);
-       }
        ShowFooterItem(2, true);
 }
 
@@ -4754,16 +4756,6 @@ VideoRecorderForm::OnVideoRecorderStopped(result r)
 {
        AppLog("OnVideoRecorderStopped  %s", GetErrorMessage(r));
        SendUserEvent(RECORDER_ON_STOP, null);
-       ShowFooterItem(0, true);
-       if (__cameraCount > 1)  //if camera count is 2 then only use secondary camera.
-       {
-               ShowFooterItem(1, true);
-       }
-       else
-       {
-               ShowFooterItem(1, false);
-       }
-       ShowFooterItem(2, true);
 }
 
 void