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

Commit 3dc0bfea authored by Jack Yu's avatar Jack Yu
Browse files

We should only bind to qualified networks service in AP-assisted mode

For legacy mode, qualified networks service is not needed.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: Ia9105a4c679b79fb55bd58cd3b51be377761688b
parent 75cefa59
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -211,8 +211,12 @@ public class AccessNetworksManager {
        phone.getContext().registerReceiverAsUser(mConfigChangedReceiver, UserHandle.ALL,
                intentFilter, null, null);

        // Only binds to qualified network service in AP-assisted mode. For legacy mode,
        // qualified networks service is not needed.
        if (phone.getTransportManager() != null && !phone.getTransportManager().isInLegacyMode()) {
            bindQualifiedNetworksService();
        }
    }

    /**
     * Find the qualified network service from configuration and binds to it. It reads the