Merge "Do not restart tethering while enabling tethering." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f8f459a2cc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user