Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfa9a746 authored by SongFerngWang's avatar SongFerngWang
Browse files

notifyUserMobileDataStateChangedForPhoneId does not set mUserMobileDataState.

It is wrong array. The correct array is mUserMobileDataState.

Bug: 128510330
Test: build pass
Merged-In: I5db6329ce4699cca8d79a827c36f7f61a4fa8f92
Change-Id: I5db6329ce4699cca8d79a827c36f7f61a4fa8f92
parent 870c267b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1315,12 +1315,12 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
            return;
        }
        if (VDBG) {
            log("notifyUserMobileDataStateChangedForSubscriberPhoneID: subId=" + phoneId
                    + " state=" + state);
            log("notifyUserMobileDataStateChangedForSubscriberPhoneID: PhoneId=" + phoneId
                    + " subId=" + subId + " state=" + state);
        }
        synchronized (mRecords) {
            if (validatePhoneId(phoneId)) {
                mMessageWaiting[phoneId] = state;
                mUserMobileDataState[phoneId] = state;
                for (Record r : mRecords) {
                    if (r.matchPhoneStateListenerEvent(
                            PhoneStateListener.LISTEN_USER_MOBILE_DATA_STATE) &&