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