Merge "Implement untetherAll as calls to stopTethering" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-10-01 01:21:35 +00:00
committed by Android (Google) Code Review

View File

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