1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-13 08:30:39 +02:00

Device connection: dont try to scan for BT classic devices

This commit is contained in:
Daniel Dakhno 2024-02-19 01:46:56 +01:00
parent 00c0a8e897
commit f5213f39f7

View File

@ -466,6 +466,9 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
private void scanAllDevices(){
List<GBDevice> devices = GBApplication.app().getDeviceManager().getDevices();
for(GBDevice device : devices){
if(!device.getDeviceCoordinator().getConnectionType().usesBluetoothLE()){
continue;
}
if(device.getState() != GBDevice.State.NOT_CONNECTED){
continue;
}