<p dir="auto">I'm using glide 3.7.0 and can see following:</p>
<p dir="auto">When I fast scroll in lists which display images and animated gifs, displaying a gif blocks all further image loading for a short time (visual impression is that a gif must finish loading before further images are loaded)</p>
<p dir="auto"><strong>What I tried so far:</strong></p>
<ul dir="auto">
<li>A simple change to the gif loading solves the problem (adding <code class="notranslate">asBitmap</code> and disable the gif animation therefore) - this is not what I want though</li>
<li>giving all the gif request <code class="notranslate">Priority.LOW</code> and all others <code class="notranslate">Priority.NORMAL</code> - this does not change anything, although it seems to be what I actually want... It's just not working though...</li>
</ul>
<p dir="auto">Is there something different I can do?</p>
<p dir="auto"><strong>Additional info</strong></p>
<p dir="auto">I'm using following disc cache strategy (decided to use this, because of some other issues here and this was the suggested solution):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="protected static DiskCacheStrategy getStrategy(IMedia media)
{
    if (media instanceof ILocalMedia) // if media is a local media
    {
        if (media.getMediaType() == MediaType.Gif)
            return DiskCacheStrategy.NONE;
        return DiskCacheStrategy.RESULT;
    }
    else // media is some network media, we must download it, so we need to use some caching
    {
        return DiskCacheStrategy.RESULT;
    }
}"><pre class="notranslate"><code class="notranslate">protected static DiskCacheStrategy getStrategy(IMedia media)
{
    if (media instanceof ILocalMedia) // if media is a local media
    {
        if (media.getMediaType() == MediaType.Gif)
            return DiskCacheStrategy.NONE;
        return DiskCacheStrategy.RESULT;
    }
    else // media is some network media, we must download it, so we need to use some caching
    {
        return DiskCacheStrategy.RESULT;
    }
}
</code></pre></div>
<p dir="auto">Hello,<br>
I have a screen with a grid of the gifs. I open this screen using 2G connection. About 16 gifs are started downloading with LOW priority. I click on the random (not yet downloaded) item and the screen with preview is opened. The gif is loading with IMMEDIATE priority.<br>
However it gives me TimeoutError.<br>
I think that it's because I lot of another gifs are downloading at the same moment.</p>
<p dir="auto">While searching a solution I added an integration with Volley</p>
<div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.github.bumptech.glide:volley-integration:1.3.1@aar'"><pre class="notranslate">    compile <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:glide:3.7.0<span class="pl-pds">'</span></span>
    compile <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:volley-integration:1.3.1@aar<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">custom module</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override
    public void registerComponents(Context context, Glide glide) {
        File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR);
        Network network = new CustomBasicNetwork(new HurlStack());
        RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network){

            @Override
            public &lt;T&gt; Request&lt;T&gt; add(Request&lt;T&gt; request) {
                request.setRetryPolicy(new DefaultRetryPolicy(TIMEOUT_MS, 1, 1));
                return super.add(request);
            }
        };
        queue.start();
        glide.register(GlideUrl.class, InputStream.class, new VolleyUrlLoader.Factory(queue));
    }"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span>
    <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">registerComponents</span>(<span class="pl-smi">Context</span> <span class="pl-s1">context</span>, <span class="pl-smi">Glide</span> <span class="pl-s1">glide</span>) {
        <span class="pl-smi">File</span> <span class="pl-s1">cacheDir</span> = <span class="pl-k">new</span> <span class="pl-smi">File</span>(<span class="pl-s1">context</span>.<span class="pl-en">getCacheDir</span>(), <span class="pl-c1">DEFAULT_CACHE_DIR</span>);
        <span class="pl-smi">Network</span> <span class="pl-s1">network</span> = <span class="pl-k">new</span> <span class="pl-smi">CustomBasicNetwork</span>(<span class="pl-k">new</span> <span class="pl-smi">HurlStack</span>());
        <span class="pl-smi">RequestQueue</span> <span class="pl-s1">queue</span> = <span class="pl-k">new</span> <span class="pl-smi">RequestQueue</span>(<span class="pl-k">new</span> <span class="pl-smi">DiskBasedCache</span>(<span class="pl-s1">cacheDir</span>), <span class="pl-s1">network</span>){

            <span class="pl-c1">@</span><span class="pl-c1">Override</span>
            <span class="pl-k">public</span> &lt;<span class="pl-smi">T</span>&gt; <span class="pl-smi">Request</span>&lt;<span class="pl-smi">T</span>&gt; <span class="pl-en">add</span>(<span class="pl-smi">Request</span>&lt;<span class="pl-smi">T</span>&gt; <span class="pl-s1">request</span>) {
                <span class="pl-s1">request</span>.<span class="pl-en">setRetryPolicy</span>(<span class="pl-k">new</span> <span class="pl-smi">DefaultRetryPolicy</span>(<span class="pl-c1">TIMEOUT_MS</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>));
                <span class="pl-k">return</span> <span class="pl-en">super</span>.<span class="pl-en">add</span>(<span class="pl-s1">request</span>);
            }
        };
        <span class="pl-s1">queue</span>.<span class="pl-en">start</span>();
        <span class="pl-s1">glide</span>.<span class="pl-en">register</span>(<span class="pl-smi">GlideUrl</span>.<span class="pl-k">class</span>, <span class="pl-smi">InputStream</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">VolleyUrlLoader</span>.<span class="pl-smi">Factory</span>(<span class="pl-s1">queue</span>));
    }</pre></div>
<p dir="auto">I tried to set TIMEOUT_MS to 30000 and even 100000 but it doesn't work. In any case I get the next error</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="11-23 12:49:52.343 4803-4803/com.talk W/System.err: java.util.concurrent.ExecutionException: com.android.volley.TimeoutError
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.integration.volley.VolleyRequestFuture.doGet(VolleyRequestFuture.java:125)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.integration.volley.VolleyRequestFuture.get(VolleyRequestFuture.java:92)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.integration.volley.VolleyStreamFetcher.loadData(VolleyStreamFetcher.java:68)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.integration.volley.VolleyStreamFetcher.loadData(VolleyStreamFetcher.java:21)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.model.ImageVideoModelLoader$ImageVideoFetcher.loadData(ImageVideoModelLoader.java:70)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.model.ImageVideoModelLoader$ImageVideoFetcher.loadData(ImageVideoModelLoader.java:53)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:170)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:128)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at java.lang.Thread.run(Thread.java:818)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:118)
11-23 12:49:52.350 4803-4803/com.talk W/System.err: Caused by: com.android.volley.TimeoutError
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:140)
11-23 12:49:52.350 4803-4803/com.talk W/System.err:     at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:112)"><pre class="notranslate"><span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">343</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>: <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ExecutionException</span>: <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">TimeoutError</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">integration</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">VolleyRequestFuture</span><span class="pl-kos">.</span><span class="pl-en">doGet</span><span class="pl-kos">(</span><span class="pl-v">VolleyRequestFuture</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:125</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">integration</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">VolleyRequestFuture</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-v">VolleyRequestFuture</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:92</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">integration</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">VolleyStreamFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">VolleyStreamFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:68</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">integration</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">VolleyStreamFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">VolleyStreamFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:21</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">ImageVideoModelLoader</span>$ImageVideoFetcher<span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">ImageVideoModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:70</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">ImageVideoModelLoader</span>$ImageVideoFetcher<span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">ImageVideoModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:53</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">decodeSource</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:170</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">decodeFromSource</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:128</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">EngineRunnable</span><span class="pl-kos">.</span><span class="pl-en">decodeFromSource</span><span class="pl-kos">(</span><span class="pl-v">EngineRunnable</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:122</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">EngineRunnable</span><span class="pl-kos">.</span><span class="pl-en">decode</span><span class="pl-kos">(</span><span class="pl-v">EngineRunnable</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:101</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">EngineRunnable</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">EngineRunnable</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:58</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">Executors</span>$RunnableAdapter<span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-v">Executors</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:423</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">FutureTask</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">FutureTask</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:237</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">runWorker</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1113</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span>$Worker<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:588</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">Thread</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">Thread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:818</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">executor</span><span class="pl-kos">.</span><span class="pl-en">FifoPriorityThreadPoolExecutor</span>$DefaultThreadFactory$1<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">FifoPriorityThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:118</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>: <span class="pl-v">Caused</span> <span class="pl-en">by</span>: <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">TimeoutError</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">toolbox</span><span class="pl-kos">.</span><span class="pl-en">BasicNetwork</span><span class="pl-kos">.</span><span class="pl-en">performRequest</span><span class="pl-kos">(</span><span class="pl-v">BasicNetwork</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:140</span><span class="pl-kos">)</span>
<span class="pl-c1">11</span>-<span class="pl-c1">23</span> <span class="pl-c1">12</span><span class="pl-pds">:49</span><span class="pl-pds">:52</span><span class="pl-kos">.</span><span class="pl-c1">350</span> <span class="pl-c1">4803</span>-<span class="pl-c1">4803</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">talk</span> <span class="pl-c1">W</span>/<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">err</span>:     <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">volley</span><span class="pl-kos">.</span><span class="pl-en">NetworkDispatcher</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">NetworkDispatcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:112</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">If I open the grid with gifs, wait until they will be downloaded and open preview of some downloaded gif  - everything works ok.<br>
Why priority doesn't work?<br>
Perhaps I misunderstand the concept of priorities. I thought that IMMEDIATE must perform current request in front of the queue.</p>