From cdc5e6eea2ba96f175433221488e845f7f1ab97b Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Thu, 25 Mar 2010 14:21:10 -0700 Subject: [PATCH] Stop scanning as soon as device is picked in the device picker. This improves OPP transfer time by a couple of seconds. Change-Id: I40e8f092ca3950a2d180b78f07f1cc717f2daaf6 --- src/com/android/settings/bluetooth/BluetoothSettings.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index 42e5832a623..1e73b2d433e 100644 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -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)) {