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; }