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
parent 5ef02d7c6d
commit 82159c5002

View file

@ -258,15 +258,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