Use apn types instead of host when sending notifications.

Previously we were passing the apn host not the type and this
caused us to sometimes not send out network change notifications.

Also rename of getActivceApn to getActiveApnHost to make
the method clearer on what is being returned and add some debug.

A future change will rename ApnSetting.apn to ApnSetting.host
and getActiveApnString.

bug: 2995554
Change-Id: I0c405b0f823f62c9596968c8516b820d9f8a94f2
This commit is contained in:
Wink Saville
2010-11-24 16:44:29 -08:00
parent b4f666f1c0
commit 26f5a384d8
8 changed files with 41 additions and 22 deletions

View File

@ -388,8 +388,8 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
return;
}
Slog.i(TAG, "notifyDataConnection: state=" + state + " isDataConnectivityPossible="
+ isDataConnectivityPossible + " reason=" + reason
+ " apn=" + apn + " networkType=" + networkType);
+ isDataConnectivityPossible + " reason='" + reason
+ "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType);
synchronized (mRecords) {
boolean modified = false;
if (state == TelephonyManager.DATA_CONNECTED) {