1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 18:45:49 +01:00

Fossil HR: minor optimizations

This commit is contained in:
Daniel Dakhno 2020-04-08 03:28:41 +02:00
parent b34e74494d
commit c75362c5ea

View File

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