if (__pRecordPauseBitmap)
{
delete __pRecordPauseBitmap;
+ __pRecordPauseBitmap = null;
}
if (__pSettingMenuString)
}
MakeSettingPopupTab(false);
+ HidePopup();
+ AppLogDebug("Camera state is %d",_pCameraPresentationModel->GetCameraState());
+ AppLogDebug("recorder state is %d",_pCameraPresentationModel->GetRecorderState());
+
if (_isRecording == false)
{
if (_pCameraPresentationModel->GetCameraState() != CAMERA_STATE_PREVIEW
{
AppLogDebug("Setting - Storage type = Phone");
storage = STORAGE_TYPE_PHONE;
+ _pCameraPresentationModel->DeleteStoredThumbnail();
SetStorageType(storage);
}
break;
AppLogDebug("Setting - Storage type = card");
storage = STORAGE_TYPE_MEMORYCARD;
+ _pCameraPresentationModel->DeleteStoredThumbnail();
+
if (_pCameraPresentationModel->IsStorageCardMounted() == true)
{
SetStorageType(storage);
__recordingMaxTime = 0;
__pRecordTimer = new (std::nothrow) Timer();
- __pRecordTimer->Construct(*this);
+ r = __pRecordTimer->Construct(*this);
r = __pRecordTimer->StartAsRepeatable(CAMCORDER_TIMER_ONE_SEC);
TryCatch(r == E_SUCCESS, , "Timer::StartAsRepeatable fail[%s]", GetErrorMessage(r));
AppLogDebug("ENTER");
if (start)
{
+ if (__pRecordPauseBitmap != null)
+ {
+ delete __pRecordPauseBitmap;
+ __pRecordPauseBitmap = null;
+ }
+
__pRecordPauseBitmap = ResourceManager::GetBitmapN(RESOURCE_ID_CAMCODER_RECORDING_SHUTTER_NORMAL);
}
else
{
+ if (__pRecordPauseBitmap != null)
+ {
+ delete __pRecordPauseBitmap;
+ __pRecordPauseBitmap = null;
+ }
__pRecordPauseBitmap = ResourceManager::GetBitmapN(RESOURCE_ID_CAMCODER_STANDBY_SHUTTER_NORMAL);
}
TryCatch(__pRecordPauseBitmap != null, , "__pRecordPauseBitmap is null");
else
{
AppLogDebug("camcorder souce form");
- rectPanelBG = Rectangle(X_SETTING_MENU_BG_IMG_PORTRAIT, Y_SETTING_MENU_BG_IMG_PORTRAIT, W_SETTING_MENU_BG_IMG_PORTRAIT, H_SETTING_MENU_BG_IMG_PORTRAIT - H_SETTING_MENU_BG_IMG_MARGIN_PORTRAIT - 15);
+ rectPanelBG = Rectangle(X_SETTING_MENU_BG_IMG_PORTRAIT, Y_SETTING_MENU_BG_IMG_PORTRAIT, W_SETTING_MENU_BG_IMG_PORTRAIT, H_SETTING_MENU_BG_IMG_PORTRAIT - H_SETTING_MENU_BG_IMG_MARGIN_PORTRAIT - 14);
}
}
else
else
{
AppLogDebug("Camcorder source form");
- rectPanelBG = Rectangle(X_SETTING_MENU_BG_IMG_PORTRAIT, Y_SETTING_MENU_BG_IMG_PORTRAIT, W_SETTING_MENU_BG_IMG_PORTRAIT, H_SETTING_MENU_BG_IMG_PORTRAIT - 15);
+ rectPanelBG = Rectangle(X_SETTING_MENU_BG_IMG_PORTRAIT, Y_SETTING_MENU_BG_IMG_PORTRAIT, W_SETTING_MENU_BG_IMG_PORTRAIT, H_SETTING_MENU_BG_IMG_PORTRAIT - 13);
}
}
else
if (__pBitmap != null)
{
- delete previousBitmap;
- previousBitmap = null;
+ if (previousBitmap != null)
+ {
+ delete previousBitmap;
+ previousBitmap = null;
+ }
}
else
{
StorageCardStateChaged(false);
+
+
+ DeleteStoredThumbnail();
+
SetAppControlRequestType(APP_CONTROL_REQUEST_TYPE_FAILED);
SetStorageCardChageState(STORAGE_CARD_CHAGE_STATE_MOUNT_TO_UNMOUNT);
{
return __timerEnabled;
}
+
+void
+CameraPresentationModel::DeleteStoredThumbnail(void)
+{
+ if (__pBitmap != null)
+ {
+ delete __pBitmap;
+ __pBitmap = null;
+ }
+}