equal
deleted
inserted
replaced
356 if ( IsNumberEntryUsedL() ) |
356 if ( IsNumberEntryUsedL() ) |
357 { |
357 { |
358 // Show the number entry if it exists |
358 // Show the number entry if it exists |
359 SetNumberEntryVisibilityL(ETrue); |
359 SetNumberEntryVisibilityL(ETrue); |
360 } |
360 } |
361 else if ( NeedToSendToBackgroundL() ) |
361 else if ( NeedToReturnToForegroundAppL() ) |
362 { |
362 { |
363 // Continue displaying current app but set up the |
363 // Continue displaying current app but set up the |
364 // idle screen in the background |
364 // idle screen in the background |
365 SetupIdleScreenInBackgroundL(); |
365 SetupIdleScreenInBackgroundL(); |
366 } |
366 } |
761 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
761 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); |
762 |
762 |
763 // Capture keys when there is an incoming call |
763 // Capture keys when there is an incoming call |
764 CaptureKeysDuringCallNotificationL( ETrue ); |
764 CaptureKeysDuringCallNotificationL( ETrue ); |
765 |
765 |
766 // Indicate that the Phone needs to be sent to the background if |
766 // Indicate that the Foreground application needs to be sent to the foreground |
767 // an application other than the top application is in the foreground |
767 // after call is ended. |
768 TPhoneCmdParamBoolean booleanParam; |
768 TPhoneCmdParamBoolean booleanParam; |
769 booleanParam.SetBoolean( !TopAppIsDisplayedL() ); |
769 booleanParam.SetBoolean( !TopAppIsDisplayedL() ); |
770 iViewCommandHandle->ExecuteCommandL( |
770 iViewCommandHandle->ExecuteCommandL( |
771 EPhoneViewSetNeedToSendToBackgroundStatus, |
771 EPhoneViewSetNeedToReturnToForegroundAppStatus, |
772 &booleanParam ); |
772 &booleanParam ); |
773 |
773 |
774 // Bring Phone app in the foreground |
774 // Bring Phone app in the foreground |
775 TPhoneCmdParamInteger uidParam; |
775 TPhoneCmdParamInteger uidParam; |
776 uidParam.SetInteger( KUidPhoneApplication.iUid ); |
776 uidParam.SetInteger( KUidPhoneApplication.iUid ); |
804 // Close menu bar, if it is displayed |
804 // Close menu bar, if it is displayed |
805 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
805 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
806 |
806 |
807 // Capture keys when the phone is dialling |
807 // Capture keys when the phone is dialling |
808 CaptureKeysDuringCallNotificationL( ETrue ); |
808 CaptureKeysDuringCallNotificationL( ETrue ); |
809 |
|
810 // Indicate that the Phone needs to be sent to the background if |
|
811 // an application other than the top application is in the foreground |
|
812 TPhoneCmdParamBoolean booleanParam; |
|
813 booleanParam.SetBoolean( !TopAppIsDisplayedL() ); |
|
814 |
|
815 iViewCommandHandle->ExecuteCommandL( |
|
816 EPhoneViewSetNeedToSendToBackgroundStatus, |
|
817 &booleanParam ); |
|
818 |
809 |
819 // Bring Phone app in the foreground |
810 // Bring Phone app in the foreground |
820 TPhoneCmdParamInteger uidParam; |
811 TPhoneCmdParamInteger uidParam; |
821 uidParam.SetInteger( KUidPhoneApplication.iUid ); |
812 uidParam.SetInteger( KUidPhoneApplication.iUid ); |
822 iViewCommandHandle->ExecuteCommandL( EPhoneViewBringAppToForeground, |
813 iViewCommandHandle->ExecuteCommandL( EPhoneViewBringAppToForeground, |