From c66c2fc5f6451e78b63c1eee3febcfe7b703e751 Mon Sep 17 00:00:00 2001 From: Tushar Janefalkar Date: Mon, 23 Sep 2013 16:50:09 -0700 Subject: [PATCH] Add check for mAgpsEnabled requestSuplES did not have the check for mAgpsEnabled Change-Id: I314fe6bc933e5201e1ac6c6632ee3b53240955b1 CRs-fixed: 543639 --- loc_api/libloc_api_50001/LocEngAdapter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loc_api/libloc_api_50001/LocEngAdapter.cpp b/loc_api/libloc_api_50001/LocEngAdapter.cpp index 9545681a..5224473f 100644 --- a/loc_api/libloc_api_50001/LocEngAdapter.cpp +++ b/loc_api/libloc_api_50001/LocEngAdapter.cpp @@ -234,8 +234,9 @@ bool LocEngAdapter::requestNiNotify(GpsNiNotification ¬if, 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