fresco icon indicating copy to clipboard operation
fresco copied to clipboard

DraweeView is not respecting ANIMATOR_DURATION_SCALE

Open RoiEXLab opened this issue 2 years ago • 0 comments

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

RoiEXLab avatar May 09 '22 12:05 RoiEXLab