mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-02 03:07:09 +02:00
Device connection: dont try to scan for BT classic devices
This commit is contained in:
parent
00c0a8e897
commit
f5213f39f7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user