Framework did not notifyDisplayInfoChanged

Bug: 150648297
Test: adb shell am broadcast -a com.android.internal.telephony.TestServiceState \
--ei data_rat 14 --ei nr_state 3 --ei nr_frequency_range 4
Change-Id: I151833df7652b58d4bd599938e84b88e112cc0d7
This commit is contained in:
SongFerngWang
2020-03-03 21:21:32 +08:00
committed by SongFerng Wang
parent e339218972
commit f64b4f2b24

View File

@@ -1538,17 +1538,15 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
} }
synchronized (mRecords) { synchronized (mRecords) {
if (validatePhoneId(phoneId)) { if (validatePhoneId(phoneId)) {
if (mDisplayInfos[phoneId] != null) { mDisplayInfos[phoneId] = displayInfo;
mDisplayInfos[phoneId] = displayInfo; for (Record r : mRecords) {
for (Record r : mRecords) { if (r.matchPhoneStateListenerEvent(
if (r.matchPhoneStateListenerEvent( PhoneStateListener.LISTEN_DISPLAY_INFO_CHANGED)
PhoneStateListener.LISTEN_DISPLAY_INFO_CHANGED) && idMatch(r.subId, subId, phoneId)) {
&& idMatch(r.subId, subId, phoneId)) { try {
try { r.callback.onDisplayInfoChanged(displayInfo);
r.callback.onDisplayInfoChanged(displayInfo); } catch (RemoteException ex) {
} catch (RemoteException ex) { mRemoveList.add(r.binder);
mRemoveList.add(r.binder);
}
} }
} }
} }