am 37f770f0: DO NOT MERGE: Notify overall state instead of current changed state

* commit '37f770f03f975982fbe7a1f133e03724bd3dc81a':
  DO NOT MERGE: Notify overall state instead of current changed state
This commit is contained in:
yoonsung.nam
2011-09-09 14:33:33 -07:00
committed by Android Git Automerger

View File

@@ -422,11 +422,13 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
modified = true;
}
if (modified) {
Slog.d(TAG, "onDataConnectionStateChanged(" + state + ", " + networkType + ")");
Slog.d(TAG, "onDataConnectionStateChanged(" + mDataConnectionState
+ ", " + mDataConnectionNetworkType + ")");
for (Record r : mRecords) {
if ((r.events & PhoneStateListener.LISTEN_DATA_CONNECTION_STATE) != 0) {
try {
r.callback.onDataConnectionStateChanged(state, networkType);
r.callback.onDataConnectionStateChanged(mDataConnectionState,
mDataConnectionNetworkType);
} catch (RemoteException ex) {
mRemoveList.add(r.binder);
}