568 __LOGMETHODSTARTEND( EPhoneUIStates, |
568 __LOGMETHODSTARTEND( EPhoneUIStates, |
569 "CPhoneSingleCall::DisplayIncomingCallL()"); |
569 "CPhoneSingleCall::DisplayIncomingCallL()"); |
570 // Close menu bar, if it is displayed |
570 // Close menu bar, if it is displayed |
571 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
571 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
572 |
572 |
573 // Cannot delete active note, e.g. New call query, |
573 // Remove any phone dialogs if they are displayed |
574 // but show waiting note with or without caller name |
574 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
575 if ( IsAnyQueryActiveL() || |
|
576 ( !aCommandParam.Boolean() && iOnScreenDialer ) ) |
|
577 { |
|
578 CallWaitingNoteL( aCallId ); |
|
579 } |
|
580 else |
|
581 { |
|
582 // Remove any phone dialogs if they are displayed |
|
583 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
|
584 } |
|
585 |
575 |
586 // Indicate that the Phone needs to be sent to the background if |
576 // Indicate that the Phone needs to be sent to the background if |
587 // an application other than the top application is in the foreground |
577 // an application other than the top application is in the foreground |
588 TPhoneCmdParamBoolean booleanParam; |
578 TPhoneCmdParamBoolean booleanParam; |
589 booleanParam.SetBoolean( !TopAppIsDisplayedL() ); |
579 booleanParam.SetBoolean( !TopAppIsDisplayedL() ); |
590 iViewCommandHandle->ExecuteCommandL( |
580 iViewCommandHandle->ExecuteCommandL( |
591 EPhoneViewSetNeedToSendToBackgroundStatus, |
581 EPhoneViewSetNeedToReturnToForegroundAppStatus, |
592 &booleanParam ); |
582 &booleanParam ); |
593 |
583 |
594 // Bring Phone app in the foreground |
584 // Bring Phone app in the foreground |
595 TPhoneCmdParamInteger uidParam; |
585 TPhoneCmdParamInteger uidParam; |
596 uidParam.SetInteger( KUidPhoneApplication.iUid ); |
586 uidParam.SetInteger( KUidPhoneApplication.iUid ); |