From dfa9a7464b6eaa0abf9013f7e8ba60b49a267625 Mon Sep 17 00:00:00 2001 From: SongFerngWang Date: Tue, 9 Apr 2019 17:29:29 +0800 Subject: [PATCH] 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 --- .../core/java/com/android/server/TelephonyRegistry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java index 99365def5da10..534d76c00349d 100644 --- a/services/core/java/com/android/server/TelephonyRegistry.java +++ b/services/core/java/com/android/server/TelephonyRegistry.java @@ -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) &&