Merge "Remove TetherUtil functions which are no longer needed."

This commit is contained in:
Jeremy Klein
2016-02-05 18:15:29 +00:00
committed by Android (Google) Code Review
4 changed files with 8 additions and 11 deletions

View File

@@ -21,6 +21,7 @@ import android.content.Intent;
import android.graphics.drawable.Icon;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiManager;
import com.android.settings.R;
import com.android.settings.TetherSettings;
import com.android.settings.Utils;
@@ -37,7 +38,7 @@ public class HotspotCondition extends Condition {
@Override
public void refreshState() {
boolean wifiTetherEnabled = TetherUtil.isWifiTetherEnabled(mManager.getContext());
boolean wifiTetherEnabled = mWifiManager.isWifiApEnabled();
setActive(wifiTetherEnabled);
}