From c77d3e49b112937f217105d7d70d32c29187158c Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Wed, 23 Jun 2021 20:25:24 +0200 Subject: [PATCH] Fossil Hybrid HR: Add file extensions to new assets --- .../{icWthClearDay => icWthClearDay.rle} | 0 .../{icWthClearNite => icWthClearNite.rle} | 0 .../{icWthCloudy => icWthCloudy.rle} | 0 ...thPartCloudyDay => icWthPartCloudyDay.rle} | 0 ...PartCloudyNite => icWthPartCloudyNite.rle} | 0 .../fossil_hr/{icWthRainy => icWthRainy.rle} | 0 .../fossil_hr/{icWthSnowy => icWthSnowy.rle} | 0 .../{icWthStormy => icWthStormy.rle} | 0 .../fossil_hr/{icWthWindy => icWthWindy.rle} | 0 ...ourceWatchface => openSourceWatchface.bin} | Bin .../fossil_hr/{widgetDate => widgetDate.bin} | Bin .../{widgetWeather => widgetWeather.bin} | Bin .../qhybrid/HybridHRWatchfaceFactory.java | 24 +++++++++--------- 13 files changed, 12 insertions(+), 12 deletions(-) rename app/src/main/assets/fossil_hr/{icWthClearDay => icWthClearDay.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthClearNite => icWthClearNite.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthCloudy => icWthCloudy.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthPartCloudyDay => icWthPartCloudyDay.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthPartCloudyNite => icWthPartCloudyNite.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthRainy => icWthRainy.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthSnowy => icWthSnowy.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthStormy => icWthStormy.rle} (100%) rename app/src/main/assets/fossil_hr/{icWthWindy => icWthWindy.rle} (100%) rename app/src/main/assets/fossil_hr/{openSourceWatchface => openSourceWatchface.bin} (100%) rename app/src/main/assets/fossil_hr/{widgetDate => widgetDate.bin} (100%) rename app/src/main/assets/fossil_hr/{widgetWeather => widgetWeather.bin} (100%) diff --git a/app/src/main/assets/fossil_hr/icWthClearDay b/app/src/main/assets/fossil_hr/icWthClearDay.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthClearDay rename to app/src/main/assets/fossil_hr/icWthClearDay.rle diff --git a/app/src/main/assets/fossil_hr/icWthClearNite b/app/src/main/assets/fossil_hr/icWthClearNite.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthClearNite rename to app/src/main/assets/fossil_hr/icWthClearNite.rle diff --git a/app/src/main/assets/fossil_hr/icWthCloudy b/app/src/main/assets/fossil_hr/icWthCloudy.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthCloudy rename to app/src/main/assets/fossil_hr/icWthCloudy.rle diff --git a/app/src/main/assets/fossil_hr/icWthPartCloudyDay b/app/src/main/assets/fossil_hr/icWthPartCloudyDay.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthPartCloudyDay rename to app/src/main/assets/fossil_hr/icWthPartCloudyDay.rle diff --git a/app/src/main/assets/fossil_hr/icWthPartCloudyNite b/app/src/main/assets/fossil_hr/icWthPartCloudyNite.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthPartCloudyNite rename to app/src/main/assets/fossil_hr/icWthPartCloudyNite.rle diff --git a/app/src/main/assets/fossil_hr/icWthRainy b/app/src/main/assets/fossil_hr/icWthRainy.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthRainy rename to app/src/main/assets/fossil_hr/icWthRainy.rle diff --git a/app/src/main/assets/fossil_hr/icWthSnowy b/app/src/main/assets/fossil_hr/icWthSnowy.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthSnowy rename to app/src/main/assets/fossil_hr/icWthSnowy.rle diff --git a/app/src/main/assets/fossil_hr/icWthStormy b/app/src/main/assets/fossil_hr/icWthStormy.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthStormy rename to app/src/main/assets/fossil_hr/icWthStormy.rle diff --git a/app/src/main/assets/fossil_hr/icWthWindy b/app/src/main/assets/fossil_hr/icWthWindy.rle similarity index 100% rename from app/src/main/assets/fossil_hr/icWthWindy rename to app/src/main/assets/fossil_hr/icWthWindy.rle diff --git a/app/src/main/assets/fossil_hr/openSourceWatchface b/app/src/main/assets/fossil_hr/openSourceWatchface.bin similarity index 100% rename from app/src/main/assets/fossil_hr/openSourceWatchface rename to app/src/main/assets/fossil_hr/openSourceWatchface.bin diff --git a/app/src/main/assets/fossil_hr/widgetDate b/app/src/main/assets/fossil_hr/widgetDate.bin similarity index 100% rename from app/src/main/assets/fossil_hr/widgetDate rename to app/src/main/assets/fossil_hr/widgetDate.bin diff --git a/app/src/main/assets/fossil_hr/widgetWeather b/app/src/main/assets/fossil_hr/widgetWeather.bin similarity index 100% rename from app/src/main/assets/fossil_hr/widgetWeather rename to app/src/main/assets/fossil_hr/widgetWeather.bin diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceFactory.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceFactory.java index 69087a013..41c385682 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceFactory.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceFactory.java @@ -100,24 +100,24 @@ public class HybridHRWatchfaceFactory { InputStream backgroundStream = new ByteArrayInputStream(backgroundBytes); LinkedHashMap code = new LinkedHashMap<>(); try { - code.put(watchfaceName, context.getAssets().open("fossil_hr/openSourceWatchface")); - code.put("widgetDate", context.getAssets().open("fossil_hr/widgetDate")); - code.put("widgetWeather", context.getAssets().open("fossil_hr/widgetWeather")); + code.put(watchfaceName, context.getAssets().open("fossil_hr/openSourceWatchface.bin")); + code.put("widgetDate", context.getAssets().open("fossil_hr/widgetDate.bin")); + code.put("widgetWeather", context.getAssets().open("fossil_hr/widgetWeather.bin")); } catch (IOException e) { LOG.warn("Unable to read asset file", e); } LinkedHashMap icons = new LinkedHashMap<>(); try { icons.put("background.raw", backgroundStream); - icons.put("icWthClearDay", context.getAssets().open("fossil_hr/icWthClearDay")); - icons.put("icWthClearNite", context.getAssets().open("fossil_hr/icWthClearNite")); - icons.put("icWthCloudy", context.getAssets().open("fossil_hr/icWthCloudy")); - icons.put("icWthPartCloudyDay", context.getAssets().open("fossil_hr/icWthPartCloudyDay")); - icons.put("icWthPartCloudyNite", context.getAssets().open("fossil_hr/icWthPartCloudyNite")); - icons.put("icWthRainy", context.getAssets().open("fossil_hr/icWthRainy")); - icons.put("icWthSnowy", context.getAssets().open("fossil_hr/icWthSnowy")); - icons.put("icWthStormy", context.getAssets().open("fossil_hr/icWthStormy")); - icons.put("icWthWindy", context.getAssets().open("fossil_hr/icWthWindy")); + icons.put("icWthClearDay", context.getAssets().open("fossil_hr/icWthClearDay.rle")); + icons.put("icWthClearNite", context.getAssets().open("fossil_hr/icWthClearNite.rle")); + icons.put("icWthCloudy", context.getAssets().open("fossil_hr/icWthCloudy.rle")); + icons.put("icWthPartCloudyDay", context.getAssets().open("fossil_hr/icWthPartCloudyDay.rle")); + icons.put("icWthPartCloudyNite", context.getAssets().open("fossil_hr/icWthPartCloudyNite.rle")); + icons.put("icWthRainy", context.getAssets().open("fossil_hr/icWthRainy.rle")); + icons.put("icWthSnowy", context.getAssets().open("fossil_hr/icWthSnowy.rle")); + icons.put("icWthStormy", context.getAssets().open("fossil_hr/icWthStormy.rle")); + icons.put("icWthWindy", context.getAssets().open("fossil_hr/icWthWindy.rle")); } catch (IOException e) { LOG.warn("Unable to read asset file", e); }