uifw/AvKon/akncompamode/src/akncompakb.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
   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;
       
   274         if (iCompaSrvSession.Handle() == KNullHandle)
   273         if (iCompaSrvSession.Handle() == KNullHandle)
   275             {
   274             {
   276 	        err = iCompaSrvSession.Connect();
   275 	        User::LeaveIfError( iCompaSrvSession.Connect() );
   277             }
   276             }
   278         
   277         if (iCompaSrvSession.Handle() != KNullHandle)
   279         if (err == KErrNone && iCompaSrvSession.Handle() != KNullHandle)
       
   280             {
   278             {
   281             if (aDisable)
   279             if (aDisable)
   282                 {
   280                 {
   283                 iCompaSrvSession.DisaTransEffects();
   281                 iCompaSrvSession.DisaTransEffects();
   284                 }
   282                 }