emailuis/emailui/src/FreestyleEmailUiHtmlViewerView.cpp
branchRCL_3
changeset 73 c8382f7b54ef
parent 70 968773a0b6ef
child 80 726fba06891a
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
   469     }
   469     }
   470 
   470 
   471 // ---------------------------------------------------------------------------
   471 // ---------------------------------------------------------------------------
   472 //  hide or show Container ( used for activation of the view )
   472 //  hide or show Container ( used for activation of the view )
   473 //
   473 //
   474 void CFsEmailUiHtmlViewerView::FadeOut(TBool aDirectionOut )
   474 void CFsEmailUiHtmlViewerView::FadeOut( TBool aDirectionOut )
   475 	{
   475 	{
   476 	FUNC_LOG;
   476 	FUNC_LOG;
   477 	iContainer->MakeVisible(!aDirectionOut);
   477 	if ( !iContainer )
       
   478 		{
       
   479         TFsEmailUiUtility::ShowErrorNoteL( 
       
   480             R_FREESTYLE_EMAIL_ERROR_GENERAL_UNABLE_TO_COMPLETE, ETrue );
       
   481 		}
       
   482 	else
       
   483 		{
       
   484 	    iContainer->MakeVisible( !aDirectionOut );
       
   485 		}
   478 	}
   486 	}
   479 
   487 
   480 
   488 
   481 // -----------------------------------------------------------------------------
   489 // -----------------------------------------------------------------------------
   482 // CFsEmailUiHtmlViewerView::DoActivateL()
   490 // CFsEmailUiHtmlViewerView::DoActivateL()
   861     // In usual case we use the base view implementation
   869     // In usual case we use the base view implementation
   862     else
   870     else
   863         {
   871         {
   864         iMessage = NULL;
   872         iMessage = NULL;
   865         CancelFetchings();
   873         CancelFetchings();
   866         CFsEmailUiViewBase::NavigateBackL();
   874         TUid current = iAppUi.CurrentActiveView()->Id();
       
   875         if ( current == this->Id() )
       
   876             {
       
   877             CFsEmailUiViewBase::NavigateBackL();
       
   878             }
   867 
   879 
   868         if ( iContainer )
   880         if ( iContainer )
   869             {
   881             {
   870             HideContainer();
   882             HideContainer();
   871             iContainer->ResetContent();
   883             iContainer->ResetContent();