disable shared transition for gifs because it prevents glide from animating them
This commit is contained in:
parent
edc1b66f70
commit
a4609d054e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user