mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-27 09:01:38 +01:00
multi-device: only target connected devices
This commit is contained in:
parent
223e8a9110
commit
46acb7681e
@ -512,7 +512,11 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
|
||||
if(targetedDevice != null){
|
||||
targetedDevices.add(targetedDevice);
|
||||
}else{
|
||||
targetedDevices.addAll(Arrays.asList(getGBDevices()));
|
||||
for(GBDevice device : getGBDevices()){
|
||||
if(isDeviceInitialized(device)){
|
||||
targetedDevices.add(device);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (GBDevice device1 : targetedDevices) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user