Merge "Check mAgpsEnabled for data call"

This commit is contained in:
Linux Build Service Account 2013-10-24 18:06:21 -07:00 committed by Gerrit - the friendly Code Review server
commit 54012b3e1b

View file

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