Skip to content

Problem with Thumbnail Loading from a custom ImageViewFactory #187

Description

@KirkBushman

Hi, it's me again.

I've noticed an error while trying to make a custom ImageViewFactory, let me explain:
-You are loading a thumbnail in a detail view of the image inside BIV (Second activity)
-You already loaded the image on the First Activity, you should hit cache.
-This does not happen if you used RequestOptions in your call the first time.
-The thumbnail loading takes a little bit too long depending on the image, and you have lag.

In this case you do have to make a custom ImageViewFactory, but when I did, the loadThumbnailContent() function did not get called.
This happens because there are 2 functions overloads, when I override both, the call gets called twice, and messes up my image transition.

Basically in certain configurations we are loading Thumbnail images more than one time.

Some questions:

Do we need to use ImageLoader to load both thumbnail and image?
Do we need 2 interface (ImageLoader & ImageViewFactory) to manage external calls?
Do we need to manage cache, since both glide and fresco already manages cache on their own?
(Maybe we can just interface some calls to fresco and glide)

I would try to test something, but my fork is occupied by #179 at the moment...
Can you merge that for the moment while I test some stuff out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions