Here is what i did:
- Created a custom downloader (
extends OkHttpDownloader
) and assigned it to Picasso. - Inside the downloader, i added an interceptor (
getClient().interceptors().add(new Interceptor() {...}
)
I launched my Android app in debug mode, i noticed there are two threads, each appropriately named "Picasso-....". When i try to access an image from the web, each of these threads calls the public Response intercept(Chain chain)
method of my interceptor, meaning that the same request is processed by more than one thread simultaneously. What's the reason behind this?