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 inline
bool LocEngAdapter::reportDataCallOpened() bool LocEngAdapter::reportDataCallOpened()
{ {
if(mAgpsEnabled)
sendMsg(new LocEngSuplEsOpened(mOwner)); sendMsg(new LocEngSuplEsOpened(mOwner));
return true; return mAgpsEnabled;
} }
inline inline
bool LocEngAdapter::reportDataCallClosed() bool LocEngAdapter::reportDataCallClosed()
{ {
if(mAgpsEnabled)
sendMsg(new LocEngSuplEsClosed(mOwner)); sendMsg(new LocEngSuplEsClosed(mOwner));
return true; return mAgpsEnabled;
} }
inline inline