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

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

Merge "Do not restart tethering while enabling tethering." into pi-dev

parents 9d80381a d967f821
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;