}
if (__pSmallPhotoLabel != null)
{
- RemoveControl(*__pSmallPhotoLabel);
__pSmallPhotoLabel = null;
}
}
String idVal;
idVal.Append(pContact->GetRecordId());
extraData.Add(new (std::nothrow) String(CONTACTS_VIEW_TYPE), new (std::nothrow) String(CONTACTS_VIEW_TYPE_CONTACT));
+ extraData.Add(new (std::nothrow) String(CONTACTS_VIEW_TYPE_CONTACT), new (std::nothrow) String(CONTACTS_VIEW_TYPE_CONTACT));
+ extraData.Add(new (std::nothrow) String(CONTACT_KEY_ITEM_ID), new (std::nothrow) String(idVal));
extraData.Add(new (std::nothrow) String(CONTACTS_ID_KEY), new (std::nothrow) String(idVal));
+ extraData.Add(new (std::nothrow) String(CONTACT_KEY_ITEM_TYPE), new (std::nothrow) String(ITEM_TYPE_PERSON));
pAc = AppManager::FindAppControlN(PROVIDER_ID_CONTACTS, OPERATION_ID_VIEW);
}
{
AppLogDebug("Add Contact");
extraData.Add(new (std::nothrow) String(INPUT_TYPE_PHONE), new (std::nothrow) String(*__pContactNumber));
+ extraData.Add(new (std::nothrow) String(CONTACT_KEY_ITEM_TYPE), new (std::nothrow) String(ITEM_TYPE_CONTACT));
pAc = AppManager::FindAppControlN(PROVIDER_ID_CONTACTS, OPERATION_ID_ADD);
}
__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);
+ delete pContact;
+ pContact = null;
+ }
+ 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
void
EndCallForm::OnAppControlCompleteResponseReceived(const AppId& appId, const String& operationId, AppCtrlResult appControlResult, const IMap* pExtraData)
{
+ AppLogDebug("Enter");
if (__isMsgAppControlLaunched == true)
{
//Message AppControl request completed.
//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();
+ 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)