fresco
fresco copied to clipboard
DraweeView is not respecting ANIMATOR_DURATION_SCALE
Description
Android offers a global setting that allows to disable animations completely called ANIMATOR_DURATION_SCALE. However DraweeView does not make use of this setting and any shape or form when displaying animated graphics like gifs. This setting can be used for accessibility to prevent flashy images or simply for performance reasons.
Reproduction
Setup a DraweeView, and use a controller with autoPlayAnimations
set to true
and the URI pointing to an animated gif somewhere.
Then go to Developer Settings and change Animator Duration Scale to "Off", the gifs are still animated even though the setting should disable animations
Additional Information
- Fresco version: 2.6.0
- Platform version: Tested on Android 12, applicable to all versions I think