1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 02:46:50 +01:00

Fossil Hybrid HR: Add default Gadgetbridge-themed watchface background

This commit is contained in:
Arjan Schrijver 2021-07-20 15:34:35 +02:00
parent e9ccf0da7d
commit fb02fa2ee0
2 changed files with 7 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -345,6 +345,13 @@ public class HybridHRWatchfaceDesignerActivity extends AbstractGBActivity implem
private void renderWatchfacePreview() {
int widgetSize = 50;
if (selectedBackgroundImage == null) {
try {
selectedBackgroundImage = BitmapUtil.getCircularBitmap(BitmapFactory.decodeStream(getAssets().open("fossil_hr/default_background.png")));
} catch (IOException e) {
LOG.warn("Loading default watchface background failed", e);
}
}
if (selectedBackgroundImage == null) {
processedBackgroundImage = Bitmap.createBitmap(displayImageSize, displayImageSize, Bitmap.Config.ARGB_8888);
// Paint a gray circle around the watchface