camerauis/cameraxui/cxui/src/cxuistillprecaptureview.cpp
changeset 51 ccc0e7e3344f
parent 45 24fd82631616
equal deleted inserted replaced
45:24fd82631616 51:ccc0e7e3344f
   553  */
   553  */
   554 void CxuiStillPrecaptureView::focusAndCapture()
   554 void CxuiStillPrecaptureView::focusAndCapture()
   555 {
   555 {
   556     CX_DEBUG_ENTER_FUNCTION();
   556     CX_DEBUG_ENTER_FUNCTION();
   557 
   557 
   558     if (!mEngine->autoFocusControl().supported()) {
   558     if (!mEngine->autoFocusControl().supported() ||
       
   559          mEngine->autoFocusControl().isFixedFocusMode(mEngine->autoFocusControl().mode())) {
   559         // autofocus is not supported, so start capturing straight away
   560         // autofocus is not supported, so start capturing straight away
   560         capture();
   561         capture();
   561     } else {
   562     } else {
   562         setCapturePending();
   563         setCapturePending();
   563         // start focusing
   564         // start focusing