mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 20:36:51 +01:00
Fossil Hybrid HR: Add default Gadgetbridge-themed watchface background
This commit is contained in:
parent
e9ccf0da7d
commit
fb02fa2ee0
BIN
app/src/main/assets/fossil_hr/default_background.png
Normal file
BIN
app/src/main/assets/fossil_hr/default_background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user