From 0cc65337fa07ac68a91d3ec020bc3f60b507c63f Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Tue, 27 Jun 2023 12:47:38 +0200 Subject: [PATCH] Fix for #1274 (#1275) --- platform/android/CHANGELOG.md | 2 ++ .../src/main/java/org/maplibre/android/utils/BitmapUtils.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/android/CHANGELOG.md b/platform/android/CHANGELOG.md index f06acc657..c7d43e00a 100644 --- a/platform/android/CHANGELOG.md +++ b/platform/android/CHANGELOG.md @@ -26,6 +26,8 @@ MapLibre welcomes participation and contributions from everyone. Please read [`C ### 🐞 Bug fixes +- Fix "... has unresolved theme attributes" error in BitMapUtils ([#1274](https://github.com/maplibre/maplibre-native/issues/1274)). + ### ⛵ Dependencies ## 10.1.0 - May 9, 2023 diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/org/maplibre/android/utils/BitmapUtils.java b/platform/android/MapboxGLAndroidSDK/src/main/java/org/maplibre/android/utils/BitmapUtils.java index f6643875a..b8a4a1971 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/org/maplibre/android/utils/BitmapUtils.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/org/maplibre/android/utils/BitmapUtils.java @@ -180,7 +180,7 @@ public class BitmapUtils { @Nullable public static Drawable getDrawableFromRes(@NonNull Context context, @DrawableRes int drawableRes, @Nullable @ColorInt Integer tintColor) { - Drawable drawable = context.getResources().getDrawable(drawableRes); + Drawable drawable = context.getDrawable(drawableRes); if (drawable == null) { return null; }