IncomingCallForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
{
AddOrientationEventListener(*this);
+ //listen to Foreground events
+ CallApp* pPhoneApp = static_cast<CallApp*>(CallApp::GetInstance());
+ pPhoneApp->AddAppStateChangeListener(*this);
if(__pCallPresentor == null)
{
__pCallPresentor = CallPresentationModel::GetInstance();
}
CallApp* pCallApp = static_cast<CallApp*>(CallApp::GetInstance());
pCallApp->SetTopMostWindow(false);
+ pCallApp->RemoveAppStateChangeListener(*this);
}
result
void
IncomingCallForm::OnTouchReleased(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
{
+ AppLogDebug("%d",currentPosition.x);
if (__isAnswerCallStarted == true)
{
- if (currentPosition.x > REJECT_LABEL_X_OFFSET)
+ if (currentPosition.x > __pRejectLabel->GetBounds().x)
{
//Right reject icon
if(__pRejectFinalVisElem == null)
}
else if (__isRejectCallStarted == true)
{
- if (currentPosition.x < ACCEPT_LABEL_RELATIVE_POS)
+ if (currentPosition.x < ((__pAcceptLabel->GetBounds().x + __pAcceptLabel->GetWidth())- __pRejectLabel->GetBounds().x))
{
//left dial icon
if(__pAcceptFinalVisElem == null)
}
}
+
+void
+IncomingCallForm::OnForeground(void)
+{
+ __pCallPresentor->OnAppForeground();
+}