summaryrefslogtreecommitdiff
path: root/loc_api/libloc_api_50001/loc_eng.cpp
diff options
context:
space:
mode:
authorKevin Tang <zhikait@codeaurora.org>2014-09-19 12:19:08 -0700
committerVineeta Srivastava <vsrivastava@google.com>2014-09-19 14:04:57 -0700
commitb2c66a082ebe2a2f887783810d4fb3a31fd547cd (patch)
tree15529378009c7f7e737fd9de847429e1fcaea598 /loc_api/libloc_api_50001/loc_eng.cpp
parent1300ae618a0e750e41a5ee22bc242a8e0a7951b5 (diff)
downloadgps-b2c66a082ebe2a2f887783810d4fb3a31fd547cd.tar.gz
GPS lock is stuck as disabled after post powerup enablement
when the device boots with gps disabled in settings and later enabled post pwoer up, the lock state doesn't get updated correctly. Bug: 16131208 Change-Id: Ice8237a3fd67740819de573ffebbab851363163d
Diffstat (limited to 'loc_api/libloc_api_50001/loc_eng.cpp')
-rw-r--r--loc_api/libloc_api_50001/loc_eng.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/loc_api/libloc_api_50001/loc_eng.cpp b/loc_api/libloc_api_50001/loc_eng.cpp
index b678802..d6e64df 100644
--- a/loc_api/libloc_api_50001/loc_eng.cpp
+++ b/loc_api/libloc_api_50001/loc_eng.cpp
@@ -1578,8 +1578,7 @@ int loc_eng_init(loc_eng_data_s_type &loc_eng_data, LocCallbacks* callbacks,
}
STATE_CHECK((NULL == loc_eng_data.adapter),
- "instance already initialized",
- return loc_eng_data.adapter->setGpsLockMsg(0));
+ "instance already initialized", return 0);
memset(&loc_eng_data, 0, sizeof (loc_eng_data));
@@ -1724,8 +1723,6 @@ void loc_eng_cleanup(loc_eng_data_s_type &loc_eng_data)
loc_eng_stop(loc_eng_data);
}
- loc_eng_data.adapter->setGpsLockMsg(gps_conf.GPS_LOCK);
-
#if 0 // can't afford to actually clean up, for many reason.
LOC_LOGD("loc_eng_init: client opened. close it now.");