diff options
author | Cyan_Hsieh <cyanhsieh@google.com> | 2019-12-04 12:06:28 +0800 |
---|---|---|
committer | Cyan_Hsieh <cyanhsieh@google.com> | 2019-12-11 15:30:52 +0800 |
commit | e88586065a860ca114e0e4e8c072618a54fd758a (patch) | |
tree | 6797d138ba03cac7094f0230c4df54cbda5871db /android/2.0 | |
parent | c18923a8315ccc2c76be98f15b9b24dc89387495 (diff) | |
parent | 3b3bcb11138eb564f61bc56ad29b9660e93ff215 (diff) | |
download | gps-e88586065a860ca114e0e4e8c072618a54fd758a.tar.gz |
Merge remote-tracking branch 'goog/qcom/release/LA.UM.8.1.C9.09.00.00.518.343' into qt-qpr1-dev
Bug: 145572601
Change-Id: I9e379ad6f79f538a0368a4a905589616c5a23ee3
Diffstat (limited to 'android/2.0')
-rw-r--r-- | android/2.0/Gnss.cpp | 2 | ||||
-rw-r--r-- | android/2.0/location_api/GnssAPIClient.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/android/2.0/Gnss.cpp b/android/2.0/Gnss.cpp index af76b72..2276c14 100644 --- a/android/2.0/Gnss.cpp +++ b/android/2.0/Gnss.cpp @@ -96,6 +96,8 @@ void location_on_battery_status_changed(bool charging) { Gnss::Gnss() { ENTRY_LOG_CALLFLOW(); sGnss = this; + // initilize gnss interface at first in case needing notify battery status + sGnss->getGnssInterface()->initialize(); // register health client to listen on battery change loc_extn_battery_properties_listener_init(location_on_battery_status_changed); // clear pending GnssConfig diff --git a/android/2.0/location_api/GnssAPIClient.cpp b/android/2.0/location_api/GnssAPIClient.cpp index a3cdd27..d505241 100644 --- a/android/2.0/location_api/GnssAPIClient.cpp +++ b/android/2.0/location_api/GnssAPIClient.cpp @@ -223,7 +223,6 @@ bool GnssAPIClient::gnssSetPositionMode(IGnss::GnssPositionMode mode, // For MSA, we always treat it as SINGLE mode. mTrackingOptions.minInterval = SINGLE_SHOT_MIN_TRACKING_INTERVAL_MSEC; } - mTrackingOptions.minDistance = preferredAccuracyMeters; if (mode == IGnss::GnssPositionMode::STANDALONE) mTrackingOptions.mode = GNSS_SUPL_MODE_STANDALONE; else if (mode == IGnss::GnssPositionMode::MS_BASED) |