Merge "Stop scanning as soon as device is picked in the device picker."
This commit is contained in:
committed by
Android (Google) Code Review
commit
9166a9635e
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user