Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fd48d54 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Implement untetherAll as calls to stopTethering"

parents 4062bec0 5df6ed4a
Loading
Loading
Loading
Loading
+3 −6
Original line number Original line Diff line number Diff line
@@ -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) {