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

This commit is contained in:
TreeHugger Robot
2018-08-02 22:36:10 +00:00
committed by Android (Google) Code Review

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;