mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-17 19:04:03 +02:00
Fossil Hybrid HR: Fix setging background image when using widgets with circles on newer firmwares
This commit is contained in:
parent
8329890b19
commit
c24814f9c2
|
@ -315,6 +315,10 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
||||||
try {
|
try {
|
||||||
ArrayList<AssetImage> widgetImages = new ArrayList<>();
|
ArrayList<AssetImage> widgetImages = new ArrayList<>();
|
||||||
|
|
||||||
|
if(this.backGroundImage != null){
|
||||||
|
widgetImages.add(this.backGroundImage);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < this.widgets.size(); i++) {
|
for (int i = 0; i < this.widgets.size(); i++) {
|
||||||
Widget w = widgets.get(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]);
|
AssetImage[] images = widgetImages.toArray(new AssetImage[0]);
|
||||||
|
|
||||||
queueWrite(new AssetFilePutRequest(
|
queueWrite(new AssetFilePutRequest(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user