From 1f9075cce6a18a7cc3af85e5256e617e8526baaf Mon Sep 17 00:00:00 2001 From: Sai Aitharaju Date: Fri, 22 May 2015 09:28:53 +0530 Subject: 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 --- src/com/android/settings/bluetooth/BluetoothEnabler.java | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.1