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:
parent
26ff7d67e3
commit
e1797fc9f7
@ -138,7 +138,7 @@ public class DiscoveryActivity extends GBActivity implements AdapterView.OnItemC
|
|||||||
|
|
||||||
private void connectAndFinish(GBDevice device) {
|
private void connectAndFinish(GBDevice device) {
|
||||||
GB.toast(DiscoveryActivity.this, getString(R.string.discovery_trying_to_connect_to, device.getName()), Toast.LENGTH_SHORT, GB.INFO);
|
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();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user