summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSai Aitharaju <saia@codeaurora.org>2015-05-22 09:28:53 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:21:07 -0600
commit1f9075cce6a18a7cc3af85e5256e617e8526baaf (patch)
tree58215ce6dd20f91feff51cb9d9bde9ba065117af
parent87acb935056cc463c2531b8e1815fd95a94aafd5 (diff)
downloadpackages_apps_Settings-1f9075cce6a18a7cc3af85e5256e617e8526baaf.zip
packages_apps_Settings-1f9075cce6a18a7cc3af85e5256e617e8526baaf.tar.gz
packages_apps_Settings-1f9075cce6a18a7cc3af85e5256e617e8526baaf.tar.bz2
Bluetooth: Enable Page and Inquiry Scan
When Bluetooth Setting is in foreground enable both Page Scan and Inquiry Scan. Changes made to make device both connectable and discoverable if user is in Bluetooth settings menu. Change-Id: I5258149e375f4d6951055eac12d7127133e6af92
-rw-r--r--src/com/android/settings/bluetooth/BluetoothEnabler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothEnabler.java b/src/com/android/settings/bluetooth/BluetoothEnabler.java
index e83f483..4f442ce 100644
--- a/src/com/android/settings/bluetooth/BluetoothEnabler.java
+++ b/src/com/android/settings/bluetooth/BluetoothEnabler.java
@@ -136,6 +136,7 @@ public final class BluetoothEnabler implements SwitchBar.OnSwitchChangeListener
setChecked(true);
mSwitch.setEnabled(true);
updateSearchIndex(true);
+ mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE);
break;
case BluetoothAdapter.STATE_TURNING_OFF:
mSwitch.setEnabled(false);