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

Commit d967f821 authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Do not restart tethering while enabling tethering.

Change-Id: I64194cfbcf830d867593681ab960fea0213ef24a
Fixes: 110303540
Test: manual
(cherry picked from commit aa4735f6)
parent ae3f6561
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -134,6 +134,10 @@ public class HotspotControllerImpl implements HotspotController, WifiManager.Sof

    @Override
    public void setHotspotEnabled(boolean enabled) {
        if (mWaitingForCallback) {
            if (DEBUG) Log.d(TAG, "Ignoring setHotspotEnabled; waiting for callback.");
            return;
        }
        if (enabled) {
            OnStartTetheringCallback callback = new OnStartTetheringCallback();
            mWaitingForCallback = true;