Open bamsbamx opened 6 years ago
I'd guess that these would be XML resources which Fresco isn't able to process.
Can you dump the content of those URIs into files and provide them here?
You may be right, the problem may come from being an XML file (the new Android Adaptive icons and, thus, returning an AdaptiveDrawable), but I cannot dump the URI contents right now.
However, loading them with Glide library (Picasso didnt work either) has been successful, by simply using
Glide.with(mContext).load(app.iconUri).into(holder.appIconImgView);
Thanks for the details @bamsbamx :) I've updated the issue's title to reflect this
If it works with Glide, I feel that we should be able to pull that off as well. However, this is probably low on our internal priority list which is why I'll mark this as help-wanted and starter-task.
In case you're interested: We always welcome pull-requests and have documentation on how to get started http://frescolib.org/docs/building-from-source.html
Fresco also supports custom decoder, so you can just add a custom decoder that handles the image properly (http://frescolib.org/docs/customizing-image-formats.html). Then, you don't need to build from source but just experiment with a custom decoder in your app and make it work. And as Daniel mentioned, pull requests are welcome.
good @oprisnik
Description
Trying to load the URI identifier for installed applications icons fails for some apps (system and non-system) and throws some logs:
As seen in logs, it fails for applications like Chrome Browser, Docs, GMail, Google Calendar or even System keyboard
Reproduction
Just retrieve ApplicationInfo to access ApplicationInfo.icon class field, then parse the URI for such icon identifier and try to load:
LOADER
List<ApplicationInfo> appInfos = mPackageManager.getInstalledApplications(0);
LIST(RECYCLER)VIEW ADAPTER
Additional Information