equal
deleted
inserted
replaced
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 } |