Implement untetherAll as calls to stopTethering

am: fa6a486615

Change-Id: I20abc6e267bf38208e9f76f173a9fb584749c4f5
This commit is contained in:
Christopher Wiley
2016-10-06 19:58:33 +00:00
committed by android-build-merger

View File

@@ -626,12 +626,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) {