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

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

NR advanced check bandwidth only if set

Test: atest NetworkTypeControllerTest
Bug: 214140133
Change-Id: I10ee2ba2cea1c2abda4fce31d20d59d99dc543cf
parent f787eede
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1208,7 +1208,8 @@ public class NetworkTypeController extends StateMachine {


        // Check if meeting minimum bandwidth requirement. For most carriers, there is no minimum
        // Check if meeting minimum bandwidth requirement. For most carriers, there is no minimum
        // bandwidth requirement and mNrAdvancedThresholdBandwidth is 0.
        // bandwidth requirement and mNrAdvancedThresholdBandwidth is 0.
        if (IntStream.of(mPhone.getServiceState().getCellBandwidths()).sum()
        if (mNrAdvancedThresholdBandwidth > 0
                && IntStream.of(mPhone.getServiceState().getCellBandwidths()).sum()
                < mNrAdvancedThresholdBandwidth) {
                < mNrAdvancedThresholdBandwidth) {
            return false;
            return false;
        }
        }