Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5d62e53 authored by Rohit Singh's avatar Rohit Singh
Browse files

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 in connectable and
discoverable if user is in Bluetooth setting menu.
CRs-Fixed: 753990

Change-Id: I2d72ce3192f6b7fa9eb6beb5a175a3e732dac5a8
parent a9a26994
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -134,6 +134,8 @@ public final class BluetoothEnabler implements SwitchBar.OnSwitchChangeListener
                setChecked(true);
                mSwitch.setEnabled(true);
                updateSearchIndex(true);
                // enable page and inquiry scan
                mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE);
                break;
            case BluetoothAdapter.STATE_TURNING_OFF:
                mSwitch.setEnabled(false);