Flora License
-Version 1.0, April, 2013
+Version 1.1, April, 2013
http://floralicense.org/license/
Copyright [yyyy] [name of copyright owner]
- Licensed under the Flora License, Version 1.0 (the "License");
+ Licensed under the Flora License, Version 1.1 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
-Except as noted, this software is licensed under Flora License, Version 1.
-Please, see the LICENSE.Flora file for Flora License, Version 1 terms and conditions.
\ No newline at end of file
+Except as noted, this software is licensed under Flora License, Version 1.1.
+Please, see the LICENSE.Flora file for Flora License, Version 1.1 terms and conditions.
//AddToContact or Viewcontact button
pButton = static_cast<Button*>(GetControl(IDC_ADD_TO_CONTACT_BUTTON));
pButton->SetShowState(isEnabled);
+ pButton->SetEnabled(isEnabled);
/*pButton->Invalidate(true);*/
}
}
else if(pEndCall->GetCalllogType() == CALL_LOG_TYPE_VOICE_INCOMING)
{
- __pCallButtonsPanel->ShowOrHideAddtoContactsButton(true);
+ if(pEndCall->GetContactNumber().IsEmpty() == false)
+ {
+ __pCallButtonsPanel->ShowOrHideAddtoContactsButton(true);
+ }
}
}
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();
}
void
IncomingCallForm::OnForeground(void)
{
+ AppLogDebug("Enter");
__pCallPresentor->OnAppForeground();
}
void CallPresentationModel::OnAppForeground(void)
{
+ AppLogDebug("Enter %d %d",__isDialAppControlRunning ,__isMessageAppControlRunning);
if (__isDialAppControlRunning == true)
{
//This comes here, when Dialer AppControl is finished working.
__pAppControlMgr->AppControlRequestCompleted();
//Check if this was the last call, then terminate application.
//And if any calls are active, then those cases are already handled from Other places.
- if( GetCurrentCallCount() == 0)
+ if( GetCurrentCallCount() == 0 && IsIncomingorDialingCallPresent() == false)
{
- CallApp* pPhoneApp = static_cast<CallApp*>(UiApp::GetInstance());
- pPhoneApp->Terminate();
+ CallApp* pCallApp = static_cast<CallApp*>(UiApp::GetInstance());
+ pCallApp->Terminate();
}
}
}
if(__isDialAppControlRunning == true)
{
+ AppLogDebug("__isDialAppControlRunning == true");
//Do not allow another app control if already running
return;
}