{
AppLogDebug("SECONDARY -> PRIMARY");
+ r = ToggleCameraDirection(CAMCORDER_FORM_PRIMARY_MODE);
+ TryReturnVoid(r == E_SUCCESS, "ToggleCameraDirection() fail[%s]", GetErrorMessage(r));
+
r = __pCamcorderPresentationModel->GetMediaCapability(CAMERA_PRIMARY_SUPPORT_FLASH, value);
if (value == true && r == E_SUCCESS)
r = __pCamcorderPresentationModel->SetValue(SELF_PORTRAIT_ENABLE, CameraPresentationModel::CAM_SELF_PORTRAIT_MODE_PRIMARY);
TryReturnVoid(r == E_SUCCESS, "Reg setValue fail[%s]", GetErrorMessage(r));
- r = ToggleCameraDirection(CAMCORDER_FORM_PRIMARY_MODE);
- TryReturnVoid(r == E_SUCCESS, "ToggleCameraDirection() fail[%s]", GetErrorMessage(r));
r = UpdateUiPanelIcon();
//TryReturnVoid(r == E_SUCCESS, "UpdateUiPanelIcon() fail[%s]", GetErrorMessage(r));
__isToggleCameraDirection = true;
+ r = ToggleCameraDirection(CameraPresentationModel::CAM_SELF_PORTRAIT_MODE_PRIMARY);
+ TryReturnVoid(r == E_SUCCESS, "ToggleCameraDirection() fail[%s]", GetErrorMessage(r));
+
r = __pCameraPresentationModel->SetValue(SELF_PORTRAIT_ENABLE, CameraPresentationModel::CAM_SELF_PORTRAIT_MODE_PRIMARY);
TryReturnVoid(r == E_SUCCESS, "Faled to set value to registry[%s]", GetErrorMessage(r));
r = __pCameraPresentationModel->SetValue(FLASH_MODE, FLASH_MODE_ON);
TryReturnVoid(r == E_SUCCESS, "Faled to set value to registry[%s]", GetErrorMessage(r));
}
-
- r = ToggleCameraDirection(CameraPresentationModel::CAM_SELF_PORTRAIT_MODE_PRIMARY);
- TryReturnVoid(r == E_SUCCESS, "ToggleCameraDirection() fail[%s]", GetErrorMessage(r));
}
UpdateUiPanelIcon();
}
r = __pCameraSettingsPresentationModel->SetValue(strSectionName, entryName, value);
+
+ if (entryName.CompareTo(L"FLASH_MODE") == 0)
+ {
+ AppLogDebug("flash mode is set to value %d",value);
+ SetFlashMode(CameraFlashMode(value));
+ }
TryCatch(r == E_SUCCESS, , "Registry::SetValue() failed[%s]", GetErrorMessage(r));
AppLogDebug("EXIT");