OSDN Git Service

Stop scanning as soon as device is picked in the device picker.
authorJaikumar Ganesh <jaikumar@google.com>
Thu, 25 Mar 2010 21:21:10 +0000 (14:21 -0700)
committerJaikumar Ganesh <jaikumar@google.com>
Thu, 25 Mar 2010 21:21:10 +0000 (14:21 -0700)
This improves OPP transfer time by a couple of seconds.

Change-Id: I40e8f092ca3950a2d180b78f07f1cc717f2daaf6

src/com/android/settings/bluetooth/BluetoothSettings.java

index 42e5832..1e73b2d 100644 (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)) {