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

Commit 9bb1107b 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: 142971868
Test: atest ServiceStateTrackerTest
Change-Id: Iedae6b8ee9bce32024d7b9272aa458e0c89d1ad0
Merged-In: Iedae6b8ee9bce32024d7b9272aa458e0c89d1ad0
(cherry picked from commit bbb806c5)
parent 2109a63f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1562,10 +1562,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);
                    }
                }