Merge "Stop scanning as soon as device is picked in the device picker."

This commit is contained in:
Jaikumar Ganesh
2010-03-25 15:57:17 -07:00
committed by Android (Google) Code Review

View File

@@ -230,6 +230,7 @@ public class BluetoothSettings extends PreferenceActivity
CachedBluetoothDevice device = btPreference.getCachedDevice();
mSelectedDevice = device.getDevice();
mLocalManager.stopScanning();
mLocalManager.persistSelectedDeviceInPicker(mSelectedDevice.getAddress());
if ((device.getBondState() == BluetoothDevice.BOND_BONDED) ||
(mNeedAuth == false)) {