summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-09-13 23:46:18 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2020-09-13 23:46:18 -0700
commitc155527978989fbb56a755cf85ea561e11ff18a5 (patch)
treea4178ea7a3b241b05ab46e546142747298a63008 /android
parent2dbd6726d760e9600d030f3ac59ef63538763795 (diff)
parent02f8462aea2cd53714081f071890d55e4f78a1e7 (diff)
Merge "Reset cached NetworkInfo when AFW shutdown"
Diffstat (limited to 'android')
-rw-r--r--android/1.0/Gnss.cpp1
-rw-r--r--android/1.1/Gnss.cpp1
-rw-r--r--android/2.0/Gnss.cpp1
-rw-r--r--android/2.1/Gnss.cpp1
4 files changed, 4 insertions, 0 deletions
diff --git a/android/1.0/Gnss.cpp b/android/1.0/Gnss.cpp
index d5fbcbf..308cc7c 100644
--- a/android/1.0/Gnss.cpp
+++ b/android/1.0/Gnss.cpp
@@ -43,6 +43,7 @@ void Gnss::GnssDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who
LOC_LOGE("%s] service died. cookie: %llu, who: %p",
__FUNCTION__, static_cast<unsigned long long>(cookie), &who);
if (mGnss != nullptr) {
+ mGnss->getGnssInterface()->resetNetworkInfo();
mGnss->stop();
mGnss->cleanup();
}
diff --git a/android/1.1/Gnss.cpp b/android/1.1/Gnss.cpp
index b368036..537f6a6 100644
--- a/android/1.1/Gnss.cpp
+++ b/android/1.1/Gnss.cpp
@@ -84,6 +84,7 @@ void Gnss::GnssDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who
LOC_LOGE("%s] service died. cookie: %llu, who: %p",
__FUNCTION__, static_cast<unsigned long long>(cookie), &who);
if (mGnss != nullptr) {
+ mGnss->getGnssInterface()->resetNetworkInfo();
mGnss->stop();
mGnss->cleanup();
}
diff --git a/android/2.0/Gnss.cpp b/android/2.0/Gnss.cpp
index 8bebc5c..823ef6e 100644
--- a/android/2.0/Gnss.cpp
+++ b/android/2.0/Gnss.cpp
@@ -84,6 +84,7 @@ void Gnss::GnssDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who
LOC_LOGE("%s] service died. cookie: %llu, who: %p",
__FUNCTION__, static_cast<unsigned long long>(cookie), &who);
if (mGnss != nullptr) {
+ mGnss->getGnssInterface()->resetNetworkInfo();
mGnss->cleanup();
}
}
diff --git a/android/2.1/Gnss.cpp b/android/2.1/Gnss.cpp
index a83271e..37e1cc5 100644
--- a/android/2.1/Gnss.cpp
+++ b/android/2.1/Gnss.cpp
@@ -86,6 +86,7 @@ void Gnss::GnssDeathRecipient::serviceDied(uint64_t cookie, const wp<IBase>& who
LOC_LOGE("%s] service died. cookie: %llu, who: %p",
__FUNCTION__, static_cast<unsigned long long>(cookie), &who);
if (mGnss != nullptr) {
+ mGnss->getGnssInterface()->resetNetworkInfo();
mGnss->cleanup();
}
}