uifw/AvKon/akncompamode/src/akncompakb.cpp
branchRCL_3
changeset 51 fcdfafb36fe7
parent 0 2f259fa3e83a
child 55 aecbbf00d063
equal deleted inserted replaced
50:a1caeb42b3a3 51:fcdfafb36fe7
   268     // Transition effects cannot be disabled per application. They can be
   268     // Transition effects cannot be disabled per application. They can be
   269     // disabled globally from central repository. Transition effects are
   269     // disabled globally from central repository. Transition effects are
   270     // disabled whenever screen mode changes to compa-mode by AknCapServer.
   270     // disabled whenever screen mode changes to compa-mode by AknCapServer.
   271     if (iFlags.iInAknCapSrv && iFlags.iEffectsDisa != aDisable)
   271     if (iFlags.iInAknCapSrv && iFlags.iEffectsDisa != aDisable)
   272         {
   272         {
       
   273         TInt err = KErrNone;
   273         if (iCompaSrvSession.Handle() == KNullHandle)
   274         if (iCompaSrvSession.Handle() == KNullHandle)
   274             {
   275             {
   275 	        User::LeaveIfError( iCompaSrvSession.Connect() );
   276 	        err = iCompaSrvSession.Connect();
   276             }
   277             }
   277         if (iCompaSrvSession.Handle() != KNullHandle)
   278         
       
   279         if (err == KErrNone && iCompaSrvSession.Handle() != KNullHandle)
   278             {
   280             {
   279             if (aDisable)
   281             if (aDisable)
   280                 {
   282                 {
   281                 iCompaSrvSession.DisaTransEffects();
   283                 iCompaSrvSession.DisaTransEffects();
   282                 }
   284                 }