summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2010-03-25 14:21:10 -0700
committerJaikumar Ganesh <jaikumar@google.com>2010-03-25 14:21:10 -0700
commitcdc5e6eea2ba96f175433221488e845f7f1ab97b (patch)
treec879cd94f3e9c5a48801b5f6721583b1275799e9 /src/com/android/settings/bluetooth
parent98d55daeea6d07e69a5f9f8893c003fcf6a163b0 (diff)
downloadpackages_apps_Settings-cdc5e6eea2ba96f175433221488e845f7f1ab97b.zip
packages_apps_Settings-cdc5e6eea2ba96f175433221488e845f7f1ab97b.tar.gz
packages_apps_Settings-cdc5e6eea2ba96f175433221488e845f7f1ab97b.tar.bz2
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
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothSettings.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java
index 42e5832..1e73b2d 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)) {