Do not restart tethering while enabling tethering.

Change-Id: I64194cfbcf830d867593681ab960fea0213ef24a
Fixes: 110303540
Test: manual
This commit is contained in:
Amin Shaikh
2018-06-19 17:58:35 -04:00
parent 6a298d6202
commit aa4735f69c

View File

@@ -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;