Add check for mAgpsEnabled

requestSuplES did not have
the check for mAgpsEnabled

Change-Id: I314fe6bc933e5201e1ac6c6632ee3b53240955b1
CRs-fixed: 543639
This commit is contained in:
Tushar Janefalkar 2013-09-23 16:50:09 -07:00 committed by Gerrit - the friendly Code Review server
parent b70967945d
commit c66c2fc5f6

View file

@ -234,8 +234,9 @@ bool LocEngAdapter::requestNiNotify(GpsNiNotification &notif, const void* data)
inline
bool LocEngAdapter::requestSuplES(int connHandle)
{
sendMsg(new LocEngRequestSuplEs(mOwner, connHandle));
return true;
if (mAgpsEnabled)
sendMsg(new LocEngRequestSuplEs(mOwner, connHandle));
return mAgpsEnabled;
}
inline