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:
Christopher Wiley
2016-07-18 11:16:15 -07:00
parent 534d644326
commit 9d251279ca
3 changed files with 7 additions and 12 deletions

View File

@@ -110,16 +110,6 @@ public class WifiApEnabler {
}
}
public void setSoftapEnabled(boolean enable) {
if (TetherUtil.setWifiTethering(enable, mContext)) {
/* Disable here, enabled on receiving success broadcast */
mSwitch.setEnabled(false);
} else {
mSwitch.setSummary(R.string.wifi_error);
}
}
public void updateConfigSummary(WifiConfiguration wifiConfig) {
String s = mContext.getString(
com.android.internal.R.string.wifi_tether_configure_ssid_default);