equal
deleted
inserted
replaced
448 CleanupClosePushL( rwsSession ); |
448 CleanupClosePushL( rwsSession ); |
449 |
449 |
450 // Simulate a back key to exit embedded app |
450 // Simulate a back key to exit embedded app |
451 // so that email editor could show on the top level. |
451 // so that email editor could show on the top level. |
452 TKeyEvent KeyEvent = TKeyEvent(); |
452 TKeyEvent KeyEvent = TKeyEvent(); |
|
453 // this is neccesary for photogalery image viewer (don't remove) |
|
454 KeyEvent.iScanCode = EStdKeyUpArrow; |
|
455 rwsSession.SimulateKeyEvent( KeyEvent ); |
453 KeyEvent.iCode = EKeyCBA2; |
456 KeyEvent.iCode = EKeyCBA2; |
454 rwsSession.SimulateKeyEvent( KeyEvent ); |
457 rwsSession.SimulateKeyEvent( KeyEvent ); |
455 |
458 |
456 rwsSession.Close(); |
459 rwsSession.Close(); |
457 CleanupStack::PopAndDestroy( &rwsSession ); |
460 CleanupStack::PopAndDestroy( &rwsSession ); |
1405 |
1408 |
1406 self->iAddingAttachmentDialogOpened = ETrue; |
1409 self->iAddingAttachmentDialogOpened = ETrue; |
1407 self->iContainer->SwitchChangeMskOff( ETrue ); |
1410 self->iContainer->SwitchChangeMskOff( ETrue ); |
1408 TRAP( error, ok = attachmentControl->AppendAttachmentToListL( |
1411 TRAP( error, ok = attachmentControl->AppendAttachmentToListL( |
1409 self->iAttachmentAddType) ); |
1412 self->iAttachmentAddType) ); |
|
1413 |
|
1414 if( error == KErrNoMemory ) |
|
1415 { |
|
1416 TRAP_IGNORE( TFsEmailUiUtility::ShowErrorNoteL( |
|
1417 R_FREESTYLE_EMAIL_ERROR_GENERAL_UNABLE_TO_COMPLETE, |
|
1418 ETrue ) ); |
|
1419 } |
1410 self->iContainer->SwitchChangeMskOff( EFalse ); |
1420 self->iContainer->SwitchChangeMskOff( EFalse ); |
1411 self->iAddingAttachmentDialogOpened = EFalse; |
1421 self->iAddingAttachmentDialogOpened = EFalse; |
1412 |
1422 |
1413 if ( ok && error == KErrNone ) |
1423 if ( ok && error == KErrNone ) |
1414 { |
1424 { |