{"action":"opened","issue":{"url":"https://api.github.com/repos/bumptech/glide/issues/726","labels_url":"https://api.github.com/repos/bumptech/glide/issues/726/labels{/name}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/726/comments","events_url":"https://api.github.com/repos/bumptech/glide/issues/726/events","html_url":"https://github.com/bumptech/glide/issues/726","id":115125789,"number":726,"title":"Check if url2 is in cache else show url1","user":{"login":"sumbulAlvi","id":14984167,"avatar_url":"https://avatars.githubusercontent.com/u/14984167?v=3","gravatar_id":"","url":"https://api.github.com/users/sumbulAlvi","html_url":"https://github.com/sumbulAlvi","followers_url":"https://api.github.com/users/sumbulAlvi/followers","following_url":"https://api.github.com/users/sumbulAlvi/following{/other_user}","gists_url":"https://api.github.com/users/sumbulAlvi/gists{/gist_id}","starred_url":"https://api.github.com/users/sumbulAlvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumbulAlvi/subscriptions","organizations_url":"https://api.github.com/users/sumbulAlvi/orgs","repos_url":"https://api.github.com/users/sumbulAlvi/repos","events_url":"https://api.github.com/users/sumbulAlvi/events{/privacy}","received_events_url":"https://api.github.com/users/sumbulAlvi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T19:11:15Z","updated_at":"2015-11-04T19:11:15Z","closed_at":null,"body":"I've seen that this question has been asked a few times before (https://github.com/bumptech/glide/issues/639), however, perhaps there is a solution for my particular usecase that I am overlooking? I need the functionality as follows:\r\n\r\nMy network response for the post provides me 2 urls, url1 = the first frame of the gif (png), url2 = think of the actual gif. I only want to load url1 if the full gif (url2) has not been downloaded before by Glide.\r\nThe condition is: \r\n=> Show url1 if the user has not downloaded url2 (the full gif) before.\r\n\r\nThe only alternative I can think of is placing a click listener on the image which launches activity2 which downloads url2. However, that requires holding on to states and holding on to flags set in the click listener which seems unnecessarily complex. Do you have any suggestions on using the Glide interface/components to achieve this behavior?\r\n\r\nThanks! "}}