disable shared transition for gifs because it prevents glide from animating them

This commit is contained in:
Andrew Dolgov 2017-05-31 21:37:58 +03:00
parent edc1b66f70
commit a4609d054e

View File

@ -117,7 +117,8 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
}
});
if (position == 0) {
// shared element transitions stop GIFs from playing
if (position == 0 && url.toLowerCase().indexOf(".gif") == -1) {
ViewCompat.setTransitionName(imgView, "gallery:" + url);
}