From c75362c5ea489247cc00b473a0ef91dbb1cc1569 Mon Sep 17 00:00:00 2001 From: Daniel Dakhno Date: Wed, 8 Apr 2020 03:28:41 +0200 Subject: [PATCH] Fossil HR: minor optimizations --- .../qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java index ead685783..ebaaa86bc 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java @@ -389,14 +389,16 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter { widgetImages.add(this.backGroundImage); } + AssetImage[] images = widgetImages.toArray(new AssetImage[0]); + queueWrite(new AssetFilePutRequest( - widgetImages.toArray(new AssetImage[0]), + images, (byte) 0x00, this )); // queueWrite(new FileDeleteRequest((short) 0x0503)); queueWrite(new ImagesSetRequest( - widgetImages.toArray(new AssetImage[0]), + images, this )); } catch (IOException e) {