Merge "Implement untetherAll as calls to stopTethering"
am: 7fd48d54de
Change-Id: I35eda039f92836a9216bfed93b8fc2c39a434a3c
This commit is contained in:
@@ -625,12 +625,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) {
|
||||
|
||||
Reference in New Issue
Block a user