b/2173596 Cancel Bluetooth scanning when the user leaves Bluetooth Settings.

Change-Id: Ib4dd6254c90da619e853b1be22fba3ff1365258e
This commit is contained in:
Michael Chan
2009-10-07 16:13:47 -07:00
parent 94ca23dcb0
commit 81cdaff7b5
3 changed files with 13 additions and 1 deletions

View File

@@ -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();