equal
deleted
inserted
replaced
345 // but in case contacts action menu was used within FsEmail, this doesn' |
345 // but in case contacts action menu was used within FsEmail, this doesn' |
346 // work. It doesn't hurt to call this again even if it was already called |
346 // work. It doesn't hurt to call this again even if it was already called |
347 // once from BaseView. |
347 // once from BaseView. |
348 if ( iLaunchParams.iActivatedExternally ) |
348 if ( iLaunchParams.iActivatedExternally ) |
349 { |
349 { |
350 iAppUi.ViewActivatedExternallyL( Id() ); |
350 //notify Contact details view to close on external activation |
|
351 CFSEmailUiContactHandler* contactHandler = NULL; // not owned |
|
352 CFsDelayedLoader* delLoader = CFsDelayedLoader::InstanceL(); // not owned |
|
353 if( delLoader ) |
|
354 { |
|
355 contactHandler = delLoader->GetContactHandlerL(); |
|
356 |
|
357 if( contactHandler && aPrevViewId.iViewUid == contactHandler->GetDetailsViewUid() ) |
|
358 { |
|
359 contactHandler->CloseContactDetailsL(); |
|
360 } |
|
361 iAppUi.ViewActivatedExternallyL( Id() ); |
|
362 } |
351 } |
363 } |
352 |
364 |
353 // Try to get the mailbox by other means if using launch parameters failed |
365 // Try to get the mailbox by other means if using launch parameters failed |
354 if ( !iMailBox ) |
366 if ( !iMailBox ) |
355 { |
367 { |
1717 iNewMessage->SaveMessageL(); |
1729 iNewMessage->SaveMessageL(); |
1718 iMessageModified = EFalse; |
1730 iMessageModified = EFalse; |
1719 TFsEmailUiUtility::CreatePlainTextPartL( |
1731 TFsEmailUiUtility::CreatePlainTextPartL( |
1720 *iNewMessage, iNewMessageTextPart ); |
1732 *iNewMessage, iNewMessageTextPart ); |
1721 InitFieldsL(); |
1733 InitFieldsL(); |
1722 TBool spaceInBegin = ETrue; |
1734 IncludeMessageTextL(); |
1723 IncludeMessageTextL(spaceInBegin); |
|
1724 AttachmentsListControl()->Model()->Clear(); |
1735 AttachmentsListControl()->Model()->Clear(); |
1725 GetAttachmentsFromMailL(); |
1736 GetAttachmentsFromMailL(); |
1726 SetAttachmentLabelContentL(); |
1737 SetAttachmentLabelContentL(); |
1727 iAttachmentListSaveDraft = ETrue; |
1738 iAttachmentListSaveDraft = ETrue; |
1728 |
1739 |
2518 if ( item && !item->IsRemote() ) // cannot open remote attachments |
2529 if ( item && !item->IsRemote() ) // cannot open remote attachments |
2519 { |
2530 { |
2520 CFSMailMessagePart* msgPart = |
2531 CFSMailMessagePart* msgPart = |
2521 iNewMessage->ChildPartL( item->MailMsgPartId() ); |
2532 iNewMessage->ChildPartL( item->MailMsgPartId() ); |
2522 CleanupStack::PushL( msgPart ); |
2533 CleanupStack::PushL( msgPart ); |
|
2534 |
|
2535 //We are forbidding to change MSK label during OpenAttachmentL |
|
2536 //because dialog/popup can be open |
|
2537 iContainer->SwitchChangeMskOff( ETrue ); |
2523 TFsEmailUiUtility::OpenAttachmentL( *msgPart ); |
2538 TFsEmailUiUtility::OpenAttachmentL( *msgPart ); |
|
2539 iContainer->SwitchChangeMskOff( EFalse ); |
|
2540 |
2524 CleanupStack::PopAndDestroy( msgPart ); |
2541 CleanupStack::PopAndDestroy( msgPart ); |
2525 } |
2542 } |
2526 } |
2543 } |
2527 } |
2544 } |
2528 |
2545 |