summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDante Russo <drusso@codeaurora.org>2020-03-22 19:33:23 +0800
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-03-24 15:14:55 +0000
commitc64137ec20294ad8d78c704a6ed423a7a2554a59 (patch)
treed38070c1fa6254297ba5892d64fac08d1c89b322
parentd9f230a7f3b9eae3d051d3532ccf109777a7d6fd (diff)
downloadgps-c64137ec20294ad8d78c704a6ed423a7a2554a59.tar.gz
Fix odcpi feature when Location is off in settings
Assure gnssInterface is initialized during call to getGnssInterface to assure GnssAdapter is created and able to accept calls like odcpiInit Bug: 152261445 Test: Verified ODCPI is initialized at boot-up with location settings off. CR-fixed: 2644833 Change-Id: I60adea4d9a0d174244b2441ce14093daf5c20efb (cherry picked from commit 7fcd884a21b25b40fb8054a8dfcd895442b3266b)
-rw-r--r--gnss/location_gnss.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnss/location_gnss.cpp b/gnss/location_gnss.cpp
index 97e99e4..c3ea105 100644
--- a/gnss/location_gnss.cpp
+++ b/gnss/location_gnss.cpp
@@ -140,6 +140,7 @@ extern "C" const GnssInterface* getGnssInterface()
const GnssInterface* getGnssInterface()
#endif // DEBUG_X86
{
+ gGnssInterface.initialize();
return &gGnssInterface;
}