summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSharvil Nanavati <sharvil@google.com>2015-08-20 16:45:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-20 16:45:52 +0000
commit69504b53553589bf272c2185e709a5cd57cb452c (patch)
tree88261c2b5f2e0b93bb86ed545adcbf5d0431decf
parent7de9fbca0bf968aa4dfa48be042bb45f77fed081 (diff)
parent2aa0523f79d1e9de4bc85efb6026a72af5506f0e (diff)
downloadframeworks_base-69504b53553589bf272c2185e709a5cd57cb452c.zip
frameworks_base-69504b53553589bf272c2185e709a5cd57cb452c.tar.gz
frameworks_base-69504b53553589bf272c2185e709a5cd57cb452c.tar.bz2
Merge "DO NOT MERGE Work around for not getting APN info in NetworkInfo object." into cw-e-dev
-rw-r--r--services/core/java/com/android/server/location/GpsLocationProvider.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/location/GpsLocationProvider.java b/services/core/java/com/android/server/location/GpsLocationProvider.java
index ba5f516..02f2c73 100644
--- a/services/core/java/com/android/server/location/GpsLocationProvider.java
+++ b/services/core/java/com/android/server/location/GpsLocationProvider.java
@@ -766,6 +766,10 @@ public class GpsLocationProvider implements LocationProviderInterface {
&& mAGpsDataConnectionState == AGPS_DATA_CONNECTION_OPENING) {
if (mNetworkAvailable) {
String apnName = info.getExtraInfo();
+ // APN wasn't found in the intent, try to get it from the content provider.
+ if (apnName == null) {
+ apnName = getSelectedApn();
+ }
if (apnName == null) {
/* Assign a dummy value in the case of C2K as otherwise we will have a runtime
exception in the following call to native_agps_data_conn_open*/