Do not use TetherUtil.setWifiTethering
This functionality is replaced by ConnectivityManager.startTethering()
and ConnectivityManager.stopTethering().
Bug: 30147602
Test: Can toggle tethering on/off via all of settings, quick settings,
and quick quick settings.
Change-Id: I4d190185c473237982b988f898e76d4997dc401c
This commit is contained in:
@@ -199,7 +199,9 @@ public class TetherService extends Service {
|
||||
}
|
||||
|
||||
private void disableWifiTethering() {
|
||||
TetherUtil.setWifiTethering(false, this);
|
||||
ConnectivityManager cm =
|
||||
(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
cm.stopTethering(ConnectivityManager.TETHERING_WIFI);
|
||||
}
|
||||
|
||||
private void disableUsbTethering() {
|
||||
|
||||
Reference in New Issue
Block a user