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

Commit 54360abe authored by Hsin-chen Chuang's avatar Hsin-chen Chuang Committed by Gerrit Code Review
Browse files

Merge "floss: Reset discoverable mode on start" into main

parents faa54a08 8aad3fc3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1510,6 +1510,9 @@ impl BtifBluetoothCallbacks for Bluetooth {
                self.ble_scanner_uuid =
                    Some(self.bluetooth_gatt.lock().unwrap().register_scanner(callback_id));

                // LibBluetooth saves and restores the discoverable mode on the previous run.
                // But on Floss we always want non-discoverable mode on start.
                self.set_discoverable(BtDiscMode::NonDiscoverable, 0);
                // Update connectable mode so that disconnected bonded classic device can reconnect
                self.trigger_update_connectable_mode();