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

Commit 22d825fc authored by Jesse Melhuish's avatar Jesse Melhuish
Browse files

floss: Set connectable on startup to let devices reconnect.

When a device that disconnected from the remote side disconnects
it can now reconnect without action from the host.

Bug: 210486263
Tag: #floss
Test: Verified that disconnected device reconnects automatically.
Change-Id: I6d3940d0d556ae14da1b2433fc14466c6fc5e445
parent b6e8f65a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -498,6 +498,9 @@ impl BtifBluetoothCallbacks for Bluetooth {

            // Also need to manually request some properties
            self.intf.lock().unwrap().get_adapter_property(BtPropertyType::ClassOfDevice);

            // Ensure device is connectable so that disconnected device can reconnect
            self.set_connectable(true);
        }
    }