1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-25 22:40:05 +02:00

Fix firstConnect when bonding is not required

This commit is contained in:
Andreas Böhler 2020-11-16 22:00:27 +01:00 committed by Gitea
parent ae02c825b4
commit 4fe057e56b

View File

@ -179,7 +179,7 @@ public class BondingUtil {
toast(bondingInterface.getContext(), bondingInterface.getContext().getString(R.string.discovery_trying_to_connect_to, device.getName()), Toast.LENGTH_SHORT, GB.INFO);
// Disconnect when LE Pebble so that the user can manually initiate a connection
GBApplication.deviceService().disconnect();
GBApplication.deviceService().connect(device);
GBApplication.deviceService().connect(device, true);
bondingInterface.onBondingComplete(true);
}