Merge "Fix "TelephonyRegistry notifies wrong data status""
This commit is contained in:
@@ -1019,7 +1019,9 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
|
|||||||
if (validatePhoneId(phoneId)) {
|
if (validatePhoneId(phoneId)) {
|
||||||
mDataActivity[phoneId] = state;
|
mDataActivity[phoneId] = state;
|
||||||
for (Record r : mRecords) {
|
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 {
|
try {
|
||||||
r.callback.onDataActivity(state);
|
r.callback.onDataActivity(state);
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user