__isContactAppControlLaunched = false;
}
extraData.RemoveAll(true);
+ if(pContact != null)
+ {
+ delete pContact;
+ pContact = null;
+ }
}
void
//or if call is from known number(i.e present in contacts db), Then do NOT show "Add to Contact" button.
if (pEndCall->GetContactInfo() != null || pEndCall->GetContactNumber().IsEmpty() == true)
{
- SetContactButtonState(false);
+ Contact* pContact = __pCallPresentor->GetContactN(pEndCall->GetContactNumber());
+ //before setting check if the contact is deleted
+ if(pContact != null)
+ {
+ SetContactButtonState(false);
+ }
+ else
+ {
+ SetContactButtonState(true);
+ }
}
else
{
delete pArgs;
pArgs = null;
}
+ AddOrientationEventListener(*this);
}
void
//remove itself as listener
CallApp* pPhoneApp = static_cast<CallApp*>(CallApp::GetInstance());
pPhoneApp->RemoveAppStateChangeListener(*this);
+ RemoveOrientationEventListener(*this);
}
result
//as we do not know if it success or failed.
if(__isContactAppControlLaunched == true)
{
- CallApp* pPhoneApp = (static_cast<CallApp*>(UiApp::GetInstance()));
- pPhoneApp->Terminate();
+ //CallApp* pPhoneApp = (static_cast<CallApp*>(UiApp::GetInstance()));
+ //pPhoneApp->Terminate();
+ if(__pEndCallEventTimer != null)
+ {
+ __pEndCallEventTimer->Start(2000);
+ }
}
__isContactAppControlLaunched = false;
if (__isMsgAppControlLaunched == true)
{
//Message AppControl request completed.
- CallApp* pPhoneApp = (static_cast<CallApp*>(UiApp::GetInstance()));
- pPhoneApp->Terminate();
+ //CallApp* pPhoneApp = (static_cast<CallApp*>(UiApp::GetInstance()));
+ //pPhoneApp->Terminate();
+ if(__pEndCallEventTimer != null)
+ {
+ __pEndCallEventTimer->Start(2000);
+ }
__isMsgAppControlLaunched = false;
}
AppLogDebug("Exit");
void
EndCallForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
{
+ AppLogDebug("Enter");
if (__pCallButtonsPanel != null)
{
//update position of call buttons panel
RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(GetPortraitLayoutN());
if (pRelativeLayout != null)
{
- pRelativeLayout->SetRelation(*__pCallButtonsPanel, *pKeysBgLbl, RECT_EDGE_RELATION_TOP_TO_TOP);
+ //pRelativeLayout->SetRelation(*__pCallButtonsPanel, *pKeysBgLbl, RECT_EDGE_RELATION_TOP_TO_TOP);
}
pRelativeLayout = dynamic_cast<RelativeLayout*>(GetLandscapeLayoutN());
if (pRelativeLayout != null)