summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/HotspotOffReceiver.java
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-02-11 13:30:41 -0500
committerJason Monk <jmonk@google.com>2015-02-12 10:33:40 -0500
commit4896c01729df9f2e33d045e2d4ea3d843870ffb7 (patch)
treee90ed14394db9df11e1eaf32ad405aa341e8a1b3 /src/com/android/settings/HotspotOffReceiver.java
parentb8331548d12f308a65b63bdafbc18b6e61a40ce0 (diff)
downloadpackages_apps_Settings-4896c01729df9f2e33d045e2d4ea3d843870ffb7.zip
packages_apps_Settings-4896c01729df9f2e33d045e2d4ea3d843870ffb7.tar.gz
packages_apps_Settings-4896c01729df9f2e33d045e2d4ea3d843870ffb7.tar.bz2
Move some Tethering code to SettingsLib to share
Change-Id: I43a356f2a14af4a15d1827919c39bbd1a04d3a94
Diffstat (limited to 'src/com/android/settings/HotspotOffReceiver.java')
-rw-r--r--src/com/android/settings/HotspotOffReceiver.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/HotspotOffReceiver.java b/src/com/android/settings/HotspotOffReceiver.java
index 3ab3f9d..06ced1f 100644
--- a/src/com/android/settings/HotspotOffReceiver.java
+++ b/src/com/android/settings/HotspotOffReceiver.java
@@ -6,6 +6,8 @@ import android.content.Context;
import android.content.Intent;
import android.net.wifi.WifiManager;
+import com.android.settingslib.TetherUtil;
+
/**
* This receiver catches when quick settings turns off the hotspot, so we can
* cancel the alarm in that case. All other cancels are handled in tethersettings.
@@ -18,7 +20,7 @@ public class HotspotOffReceiver extends BroadcastReceiver {
WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
if (wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED) {
// The hotspot has been turned off, we don't need to recheck tethering.
- TetherService.cancelRecheckAlarmIfNecessary(context, TetherSettings.WIFI_TETHERING);
+ TetherService.cancelRecheckAlarmIfNecessary(context, TetherUtil.TETHERING_WIFI);
}
}
}