Merge "Fix "TelephonyRegistry notifies wrong data status"" am: 3b2f202599

am: ff3a7571c7

* commit 'ff3a7571c78796b9f0ffdbb324f2a3d4895cede1':
  Fix "TelephonyRegistry notifies wrong data status"

Change-Id: I8868f7fc6eafcb710b33c84f63f602e7e71a64c3
This commit is contained in:
xu.peng
2016-05-13 17:57:32 +00:00
committed by android-build-merger

View File

@@ -985,7 +985,9 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
if (validatePhoneId(phoneId)) {
mDataActivity[phoneId] = state;
for (Record r : mRecords) {
if (r.matchPhoneStateListenerEvent(PhoneStateListener.LISTEN_DATA_ACTIVITY)) {
// Notify by correct subId.
if (r.matchPhoneStateListenerEvent(PhoneStateListener.LISTEN_DATA_ACTIVITY) &&
idMatch(r.subId, subId, phoneId)) {
try {
r.callback.onDataActivity(state);
} catch (RemoteException ex) {