Closed danielworkman closed 3 years ago
I'm not sure how it can be failing to load the bitmap. All the resources should be bundled in with the package.
Could add a Log.e()
but at the moment this would be reporting an error for code that isn't supposed to be active yet, so unhelpful for the user.
Crash was being caused by getBitmap() returning null (probably failing to load the bitmap resource) and passing a null Bitmap to createScaledBitmap().
This return early is however silently masking the fact that we have a resource issue. Should we at least log this / add an assertion?