Merge "Notify overall state instead of current changed state"

This commit is contained in:
John Huang
2011-08-25 15:56:55 -07:00
committed by Android (Google) Code Review

View File

@@ -421,11 +421,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);
}