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

Commit 084e8536 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Tethering: Don't crash if wifi unavailable."

parents 4cbb2886 da0524f0
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -314,10 +314,14 @@ public class Tethering {

        startStateMachineUpdaters(mHandler);
        startTrackDefaultNetwork();
        getWifiManager().registerSoftApCallback(

        final WifiManager wifiManager = getWifiManager();
        if (wifiManager != null) {
            wifiManager.registerSoftApCallback(
                  mHandler::post /* executor */,
                  new TetheringSoftApCallback());
        }
    }

    private void startStateMachineUpdaters(Handler handler) {
        mCarrierConfigChange.startListening();