Check mAgpsEnabled for data call

Check AGPS flag to ensure the request
is handled by the right adapter

Change-Id: I6fb7271ec0be5aec14e9d667c07e5b01b1736c1d
CRs-fixed: 551808
This commit is contained in:
Tushar Janefalkar 2013-10-23 10:58:06 -07:00 committed by Gerrit - the friendly Code Review server
parent e585cc23fe
commit 412275d48c

View file

@ -242,15 +242,17 @@ bool LocEngAdapter::requestSuplES(int connHandle)
inline
bool LocEngAdapter::reportDataCallOpened()
{
sendMsg(new LocEngSuplEsOpened(mOwner));
return true;
if(mAgpsEnabled)
sendMsg(new LocEngSuplEsOpened(mOwner));
return mAgpsEnabled;
}
inline
bool LocEngAdapter::reportDataCallClosed()
{
sendMsg(new LocEngSuplEsClosed(mOwner));
return true;
if(mAgpsEnabled)
sendMsg(new LocEngSuplEsClosed(mOwner));
return mAgpsEnabled;
}
inline