camera: fix stability issue seen on CTS run.

Before snapshot stream fd's are closed, start preview kicks in and overrides
fullsize settings which casues thumbanil fd leak. This patch makes sure
fullsize snapshot is configured in startRecording.

Bug: 7457123
Change-Id: I50812e45659ccbc4b360394699b5798b1aa10ee8
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/camera/QCameraHWI.cpp b/camera/QCameraHWI.cpp
index be6c6e5..d5e67ec 100644
--- a/camera/QCameraHWI.cpp
+++ b/camera/QCameraHWI.cpp
@@ -1091,12 +1091,10 @@
      if (mRecordingHint) {
          //set the fullsize liveshot to True in Camcorder Mode
         mFullLiveshotEnabled = true;
-        setFullLiveshot();
         mStreamSnap->setFullSizeLiveshot(mFullLiveshotEnabled);
      }else{
          //set the fullsize liveshot to False in Camera Mode
         mFullLiveshotEnabled = false;
-        setFullLiveshot();
         mStreamSnap->setFullSizeLiveshot(mFullLiveshotEnabled);
      }
 
@@ -2704,6 +2702,10 @@
         mRecordingHint = true;
         setRecordingHintValue(mRecordingHint);
 
+        mFullLiveshotEnabled = true;
+        setFullLiveshot();
+        mStreamSnap->setFullSizeLiveshot(mFullLiveshotEnabled);
+
         mDimension.display_width = mPreviewWidth;
         mDimension.display_height= mPreviewHeight;
         mDimension.orig_video_width = mVideoWidth;