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

Commit bbb806c5 authored by Sarah Chin's avatar Sarah Chin
Browse files

Fix short-circuiting for RatRacheter

Make sure updateBandwidths() is called in ServiceStateTracker
when PhysicalChannelConfig changes.

Bug: 139650231
Test: atest ServiceStateTrackerTest
Change-Id: Iedae6b8ee9bce32024d7b9272aa458e0c89d1ad0
parent 9d7cbaa7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1570,10 +1570,11 @@ public class ServiceStateTracker extends Handler {
                        mNrStateChangedRegistrants.notifyRegistrants();
                        hasChanged = true;
                    }
                    hasChanged |= RatRatcheter
                            .updateBandwidths(getBandwidthsFromConfigs(list), mSS);

                    // Notify NR frequency, NR connection status or bandwidths changed.
                    if (hasChanged
                            || RatRatcheter.updateBandwidths(getBandwidthsFromConfigs(list), mSS)) {
                    if (hasChanged) {
                        mPhone.notifyServiceStateChanged(mSS);
                        TelephonyMetrics.getInstance().writeServiceStateChanged(
                                mPhone.getPhoneId(), mSS);