mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 03:25:49 +01:00
Fossil HR: minor optimizations
This commit is contained in:
parent
b34e74494d
commit
c75362c5ea
@ -389,14 +389,16 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
|||||||
widgetImages.add(this.backGroundImage);
|
widgetImages.add(this.backGroundImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AssetImage[] images = widgetImages.toArray(new AssetImage[0]);
|
||||||
|
|
||||||
queueWrite(new AssetFilePutRequest(
|
queueWrite(new AssetFilePutRequest(
|
||||||
widgetImages.toArray(new AssetImage[0]),
|
images,
|
||||||
(byte) 0x00,
|
(byte) 0x00,
|
||||||
this
|
this
|
||||||
));
|
));
|
||||||
// queueWrite(new FileDeleteRequest((short) 0x0503));
|
// queueWrite(new FileDeleteRequest((short) 0x0503));
|
||||||
queueWrite(new ImagesSetRequest(
|
queueWrite(new ImagesSetRequest(
|
||||||
widgetImages.toArray(new AssetImage[0]),
|
images,
|
||||||
this
|
this
|
||||||
));
|
));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user