summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/BluetoothSettings.java
diff options
context:
space:
mode:
authorMichael Chan <mchan@android.com>2009-10-07 16:13:47 -0700
committerMichael Chan <mchan@android.com>2009-10-08 11:55:47 -0700
commit81cdaff7b5aed3ea2b987b23e2e9a6c0213b0aa5 (patch)
treeca8233de367f7297f7d274fa244d60d27d2d070b /src/com/android/settings/bluetooth/BluetoothSettings.java
parent94ca23dcb049c11b097c3c1f9fe9091b3d40d337 (diff)
downloadpackages_apps_Settings-81cdaff7b5aed3ea2b987b23e2e9a6c0213b0aa5.tar.gz
packages_apps_Settings-81cdaff7b5aed3ea2b987b23e2e9a6c0213b0aa5.tar.bz2
packages_apps_Settings-81cdaff7b5aed3ea2b987b23e2e9a6c0213b0aa5.zip
b/2173596 Cancel Bluetooth scanning when the user leaves Bluetooth Settings.
Change-Id: Ib4dd6254c90da619e853b1be22fba3ff1365258e
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothSettings.java')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothSettings.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java
index 4175a8288..02d84bc31 100644
--- a/src/com/android/settings/bluetooth/BluetoothSettings.java
+++ b/src/com/android/settings/bluetooth/BluetoothSettings.java
@@ -203,6 +203,12 @@ public class BluetoothSettings extends PreferenceActivity
}
}
+ @Override
+ protected void onUserLeaveHint() {
+ super.onUserLeaveHint();
+ mLocalManager.stopScanning();
+ }
+
private void addDevices() {
List<CachedBluetoothDevice> cachedDevices =
mLocalManager.getCachedDeviceManager().getCachedDevicesCopy();