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

Commit 8f48e656 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Don't notifyDataConnectionState for enterprise.

There's no way for the receiver to differentiate between default
and enterprise.

Test: none
Bug: 186262731
Change-Id: I8e16b835c1dc1dcd017e724008e53197d103e174
parent e5a85e80
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2400,7 +2400,13 @@ public class DataConnection extends StateMachine {
    }

    private void notifyDataConnectionState() {
        // The receivers of this have no way to differentiate between default and enterprise
        // connections. Do not notify for enterprise.
        if (!isEnterpriseUse()) {
            mPhone.notifyDataConnection(getPreciseDataConnectionState());
        } else {
            log("notifyDataConnectionState: Skipping for enterprise; state=" + getState());
        }
    }

    private DcDefaultState mDefaultState = new DcDefaultState();