Merge "DO NOT MERGE Work around for not getting APN info in NetworkInfo object." into cw-e-dev

This commit is contained in:
Sharvil Nanavati
2015-08-20 16:45:52 +00:00
committed by Android (Google) Code Review

View File

@@ -766,6 +766,10 @@ public class GpsLocationProvider implements LocationProviderInterface {
&& mAGpsDataConnectionState == AGPS_DATA_CONNECTION_OPENING) { && mAGpsDataConnectionState == AGPS_DATA_CONNECTION_OPENING) {
if (mNetworkAvailable) { if (mNetworkAvailable) {
String apnName = info.getExtraInfo(); 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) { if (apnName == null) {
/* Assign a dummy value in the case of C2K as otherwise we will have a runtime /* 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*/ exception in the following call to native_agps_data_conn_open*/