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

Commit 1176423e 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
Merged-In: Iedae6b8ee9bce32024d7b9272aa458e0c89d1ad0
Change-Id: Iedae6b8ee9bce32024d7b9272aa458e0c89d1ad0
(cherry picked from commit bbb806c5)
parent 307dec62
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);
                    }
                }