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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user