calendarui/controller/src/calenviewmanager.cpp
branchRCL_3
changeset 27 55d60436f00b
parent 20 21239b3bcd78
child 30 d68a4b5d5885
equal deleted inserted replaced
21:9711e452b5e9 27:55d60436f00b
   700     iViewsActivated = ETrue;
   700     iViewsActivated = ETrue;
   701     
   701     
   702     // check for iAvoidRepopulation to avoid repopulation whenever
   702     // check for iAvoidRepopulation to avoid repopulation whenever
   703     // 1) Application comes to foreground
   703     // 1) Application comes to foreground
   704     // 2) Applictaion is opened after fake exit
   704     // 2) Applictaion is opened after fake exit
   705     if(!iAvoidRepopulation)
   705     if(!iAvoidRepopulation || iController.IsLaunchFromExternalApp() )
   706         {
   706         {
   707         TRAPD(error,StartActiveStepL());
   707         TRAPD(error,StartActiveStepL());
   708         if(error!=KErrNone)
   708         if(error!=KErrNone)
   709             {
   709             {
   710             // do avoid warning
   710             // do avoid warning
  1732             RequestActivationL(targetViewId);
  1732             RequestActivationL(targetViewId);
  1733             iViewCycleIndex = position;
  1733             iViewCycleIndex = position;
  1734             CleanupStack::PopAndDestroy(repository);  
  1734             CleanupStack::PopAndDestroy(repository);  
  1735             }
  1735             }
  1736         }
  1736         }
  1737     else // If default view is native view, then activate it
       
  1738         {
       
  1739         iAvoidRepopulation = EFalse;
       
  1740         // In case of launching missed event view or missed alarms view, there
       
  1741         // is no need to activate default view.
       
  1742         if( ( iCurrentViewId.iViewUid.iUid != KCalenMissedEventViewUidValue ) && 
       
  1743                           ( iCurrentViewId.iViewUid.iUid != KCalenMissedAlarmsViewUidValue ) )
       
  1744             {
       
  1745             // Find the default view in the view cycle list
       
  1746             TInt position = iViewInfoArray.Find(
       
  1747                     defaultViewUid, CCalenViewInfo::ViewInfoIdentifier );
       
  1748             if( position != KErrNotFound )
       
  1749                 {
       
  1750                 TVwsViewId targetViewId( KUidCalendar, defaultViewUid);
       
  1751                 RequestActivationL(targetViewId);
       
  1752                 iViewCycleIndex = position;
       
  1753                 }
       
  1754             }
       
  1755         }
       
  1756     
  1737     
  1757     TRACE_EXIT_POINT;
  1738     TRACE_EXIT_POINT;
  1758     }
  1739     }
  1759 
  1740 
  1760 // -----------------------------------------------------------------------------
  1741 // -----------------------------------------------------------------------------