1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +01:00

Lefun: Change queuing

This commit is contained in:
Yukai Li 2020-10-04 21:47:48 -06:00 committed by Gitea
parent 9fbfee945c
commit 1fc2356189

View File

@ -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);