1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 01:55:50 +01:00

When connecting for the first time, set "pair" to true

This commit is contained in:
cpfeiffer 2017-04-07 00:40:33 +02:00
parent 26ff7d67e3
commit e1797fc9f7

View File

@ -138,7 +138,7 @@ public class DiscoveryActivity extends GBActivity implements AdapterView.OnItemC
private void connectAndFinish(GBDevice device) {
GB.toast(DiscoveryActivity.this, getString(R.string.discovery_trying_to_connect_to, device.getName()), Toast.LENGTH_SHORT, GB.INFO);
GBApplication.deviceService().connect(device);
GBApplication.deviceService().connect(device, true);
finish();
}