footerItemCreate.Construct(IDA_CREATE_REJECT_CALL_MESSAGE);
footerItemCreate.SetText(AppUtility::GetResourceString(IDS_REJECT_MESSAGE_CREATE));
pFooter->AddItem(footerItemCreate);
- pFooter->SetBackButton();
pFooter->SetShowState(false);
}
}
pButtonReject->SetActionId(IDA_CANCEL_REJECT_CALL_MESSAGE_PANEL);
pButtonReject->AddActionEventListener(*this);
pButtonReject->SetEnabled(true);
- pButtonReject->SetFocus();
+ //pButtonReject->SetFocus();
ShowRejectMessageFooter();
case IDA_CREATE_REJECT_CALL_MESSAGE:
{
- __pCallPresentor->RejectCall(__incomingCallHandle, true,*__pActiveContactNo);
- ArrayListT<AppCallInfo>* pCallList = static_cast<ArrayListT<AppCallInfo>*>(__pCallPresentor->GetCallListN());
- if(pCallList != null && pCallList->GetCount() > 0)
+ if(__pCallPresentor->IsAppControlRunning() == false)
{
- __pCallPresentor->HandleCallConnected(*pCallList);
+ __pCallPresentor->RejectCall(__incomingCallHandle, true,*__pActiveContactNo);
+ ArrayListT<AppCallInfo>* pCallList = static_cast<ArrayListT<AppCallInfo>*>(__pCallPresentor->GetCallListN());
+ if(pCallList != null && pCallList->GetCount() > 0)
+ {
+ __pCallPresentor->HandleCallConnected(*pCallList);
+ }
+ pCallList = null;
}
- pCallList = null;
}
break;
__pCallPresentor = CallPresentationModel::GetInstance();
}
__pCallPresentor->SetTelEventListener(this);
+ //Abort any AppControl Request running already to show incoming call screen
+ if (__pCallPresentor->IsAppControlRunning() == true)
+ {
+ __pCallPresentor->AbortAppControlRequest();
+ }
+
HideRejectPanel();
if(__pAcceptLabel->GetVisualElement()->GetChild(IDI_ACCEPT_VISUAL_ELE_NAME,true) == null)
pButtonRejectMessage->SetActionId(IDA_SHOW_REJECT_CALL_MESSAGE_PANEL);
pButtonRejectMessage->AddActionEventListener(*this);
}
+
//This called here to handle the case when incoming call comes when
// add call is in foreground.
- __pCallPresentor->OnAppForeground();
+ //__pCallPresentor->OnAppForeground();
}
IncomingCallForm::InitializeTableView(void)
{
Panel* pKeysPanel = static_cast<Panel*>(GetControl(IDC_REJECT_PANEL));
-
TableView* pMessageList = static_cast<TableView*>(pKeysPanel->GetControl(IDC_MSG_TABLEVIEW));
pMessageList->SetItemProvider(this);
pMessageList->AddTableViewItemEventListener(*this);
SetTextToLabel(phoneNumber, contactLblName);
//fetch contact details based on phone number
- String* pDisplayName = pCallInfo->FetchCallerNameN();
- Bitmap* pPhotoBitmap = pCallInfo->FetchCallerPhotoN();
+ String* pDisplayName = pCallInfo->FetchLatestCallerNameN(phoneNumber);
+ Bitmap* pPhotoBitmap = pCallInfo->FetchLatestCallerPhotoN(phoneNumber);
ShowCallerPhoto(pPhotoBitmap);
//free resources
{
AppLogDebug("Enter");
HideRejectPanel();
- SetFocus();
+ //SetFocus();
Button* pButtonRejectMessage = static_cast<Button*>(GetControl(IDC_REJECT_MESSAGE_BUTTON));
if (pButtonRejectMessage)
{
IncomingCallForm::OnForeground(void)
{
AppLogDebug("Enter");
- __pCallPresentor->OnAppForeground();
+ //This is done so that when in IncomingCallForm and calloptionpopup is shown , now if
+ // focus goes away from popup by pressing cancel key from the host keyboard the focus shouldnt get lost
+ // but should focus the Reject message button immediately.
+ Button* pButtonRejectMessage = static_cast<Button*>(GetControl(IDC_REJECT_MESSAGE_BUTTON));
+ pButtonRejectMessage->SetFocus();
+ pButtonRejectMessage->Invalidate(true);
+// __pCallPresentor->OnAppForeground();
}
void
{
//check if no call option popup is shown, then remain on incoming call screen.
//As user has neither accepted nor rejected incoming call.
- if (__pOptionPopup == null)
+ if ((__pOptionPopup == null) || (__pOptionPopup->GetShowState() == false))
{
return;
}