From 1fc23561890998d0b1c9db7f55388c6ebc6bdac8 Mon Sep 17 00:00:00 2001 From: Yukai Li Date: Sun, 4 Oct 2020 21:47:48 -0600 Subject: [PATCH] Lefun: Change queuing --- .../service/devices/lefun/LefunDeviceSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/lefun/LefunDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/lefun/LefunDeviceSupport.java index cb31b802c..f5ed6ee54 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/lefun/LefunDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/lefun/LefunDeviceSupport.java @@ -117,7 +117,7 @@ public class LefunDeviceSupport extends AbstractBTLEDeviceSupport { SetTimeRequest request = new SetTimeRequest(this, builder); request.perform(); inProgressRequests.add(request); - builder.queue(getQueue()); + performConnected(builder.getTransaction()); } catch (IOException e) { GB.toast(getContext(), "Failed to set time", Toast.LENGTH_SHORT, GB.ERROR, e); @@ -212,7 +212,7 @@ public class LefunDeviceSupport extends AbstractBTLEDeviceSupport { FindDeviceRequest request = new FindDeviceRequest(this, builder); request.perform(); inProgressRequests.add(request); - builder.queue(getQueue()); + performConnected(builder.getTransaction()); } catch (IOException e) { GB.toast(getContext(), "Failed to initiate find device", Toast.LENGTH_SHORT, GB.ERROR, e);