-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load resource drawable Uri if drawable is a vector #2137
Comments
Getting this error too on an emulator for Pixel XL. Any update on this guys? |
Is a shape a vector? |
I'm seeing an error similar to this as well, except it is happening for Android Oreo's adaptive icons (defined similarly to vectors and shapes in an xml):
Normal icons seem to be working as expected (tested with Uber, which does not support an adaptive icon yet). |
It looks like the issue is that GlideApp.with(context).load(null).fallback(R.drawable.my_vector).into(imageView) will work fine. Yes, it has to be @GlideModule
public final class MyAppGlideModule extends AppGlideModule {} For more information about the |
As a fallback for drawables that we either can’t obtain an InputStream for or can’t decode as Bitmaps, Glide will now also call Resources#getDrawable with the given resource id. Fixes bumptech#2137.
As a fallback for drawables that we either can’t obtain an InputStream for or can’t decode as Bitmaps, Glide will now also call Resources#getDrawable with the given resource id. Fixes bumptech#2137.
Actually this is a duplicate of #350. |
Glide Version: 4.0.0-RC1
Integration libraries: okhttp3-4.0.0-RC1
Device/Android Version: Nexus 5X 7.1.2
Issue details / Repro steps / Use case background:
Loading an Uri pointing to a resource drawable "android.resource://package/drawable/ic_facebook" fails if the drawable is a Vector. Works fine otherwise, so that is definitely the problem.
Stack trace / LogCat:
The text was updated successfully, but these errors were encountered: