Merge "Implement untetherAll as calls to stopTethering"

This commit is contained in:
Treehugger Robot
2016-09-27 13:18:53 +00:00
committed by Gerrit Code Review

View File

@@ -625,12 +625,9 @@ public class Tethering extends BaseNetworkObserver implements IControlsTethering
} }
public void untetherAll() { public void untetherAll() {
synchronized (mPublicSync) { stopTethering(ConnectivityManager.TETHERING_WIFI);
if (DBG) Log.d(TAG, "Untethering " + mTetherStates.keySet()); stopTethering(ConnectivityManager.TETHERING_USB);
for (int i = 0; i < mTetherStates.size(); i++) { stopTethering(ConnectivityManager.TETHERING_BLUETOOTH);
untether(mTetherStates.keyAt(i));
}
}
} }
public int getLastTetherError(String iface) { public int getLastTetherError(String iface) {