mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-21 14:51:10 +01:00
auto connects to device on startup (mainly for testing)
This commit is contained in:
parent
8796e20676
commit
2acac2146e
@ -218,6 +218,12 @@ public class ControlCenterv2 extends AppCompatActivity
|
|||||||
} else {
|
} else {
|
||||||
GBApplication.deviceService().requestDeviceInfo();
|
GBApplication.deviceService().requestDeviceInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<GBDevice> devices = deviceManager.getDevices();
|
||||||
|
|
||||||
|
if(devices.size() > 0){
|
||||||
|
GBApplication.deviceService().connect(devices.get(0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user