emailuis/emailui/src/FreestyleEmailUiViewBase.cpp
branchRCL_3
changeset 10 f5907b1a1053
parent 8 e1b6206813b4
child 12 4ce476e64c59
equal deleted inserted replaced
8:e1b6206813b4 10:f5907b1a1053
   451         // was left inactive.
   451         // was left inactive.
   452         if( iWasActiveControlGroup )
   452         if( iWasActiveControlGroup )
   453             {
   453             {
   454             const TInt KActivationDelay = 200; // ms
   454             const TInt KActivationDelay = 200; // ms
   455             ActivateControlGroup( KActivationDelay );
   455             ActivateControlGroup( KActivationDelay );
       
   456             iWasActiveControlGroup = EFalse;
   456             }
   457             }
   457         }
   458         }
   458     else
   459     else
   459         {
   460         {
   460         iWasActiveControlGroup = ControlGroup().AcceptInput();
   461         iWasActiveControlGroup = ControlGroup().AcceptInput();
   587         if ( iPreviousAppUid != KFSEmailUiUid && iPreviousAppUid != KNullUid )
   588         if ( iPreviousAppUid != KFSEmailUiUid && iPreviousAppUid != KNullUid )
   588             {
   589             {
   589             // Email app should be hidden once the view gets deactivated. Note that hiding
   590             // Email app should be hidden once the view gets deactivated. Note that hiding
   590             // should not happen before control group switching is over because that
   591             // should not happen before control group switching is over because that
   591             // may cause views of other Alfred apps to get distorted.
   592             // may cause views of other Alfred apps to get distorted.
   592             iSendToBackgroundOnDeactivation = ETrue;
   593             if( !iAppUi.EmbeddedAppIsPreviousApp() ) // if previous app is embedded app, 
   593             iAppUi.SetSwitchingToBackground( ETrue );
   594                 //do not need hide FSEmail app when previous app view gets deactivated.
       
   595                 {
       
   596                 iSendToBackgroundOnDeactivation = ETrue;
       
   597                 iAppUi.SetSwitchingToBackground( ETrue );
       
   598                 }
       
   599             else
       
   600                 {
       
   601                 // Set flag to false for judging if previous app is embedded when editor exit.
       
   602                 iAppUi.SetEmbeddedAppToPreviousApp( EFalse );
       
   603                 }
   594 
   604 
   595             // Re-activate previously active mailbox if it got changed in the external activation.
   605             // Re-activate previously active mailbox if it got changed in the external activation.
   596             // As an exception, if previous view is the laucher grid, the previously active
   606             // As an exception, if previous view is the laucher grid, the previously active
   597             // mailbox does not need to be reactivated. This prevents unnecessary mailbox switching
   607             // mailbox does not need to be reactivated. This prevents unnecessary mailbox switching
   598             // when mailbox is entered from home screen, user returns with Back, and enters the same
   608             // when mailbox is entered from home screen, user returns with Back, and enters the same