mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fossil Hybrid HR: Add default Gadgetbridge-themed watchface background
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
+7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user