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

Fossil Hybrid HR: Fix setging background image when using widgets with circles on newer firmwares

This commit is contained in:
Andreas Shimokawa 2020-04-12 02:53:12 +02:00
parent 8329890b19
commit c24814f9c2

View File

@ -315,6 +315,10 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
try {
ArrayList<AssetImage> widgetImages = new ArrayList<>();
if(this.backGroundImage != null){
widgetImages.add(this.backGroundImage);
}
for (int i = 0; i < this.widgets.size(); i++) {
Widget w = widgets.get(i);
@ -390,10 +394,6 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
}
if(this.backGroundImage != null){
widgetImages.add(this.backGroundImage);
}
AssetImage[] images = widgetImages.toArray(new AssetImage[0]);
queueWrite(new AssetFilePutRequest(