mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Device connection: dont try to scan for BT classic devices
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user