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

Commit 53298191 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not restart tethering while enabling tethering."

parents 751bd5b6 aa4735f6
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;