Adjust BackgroundPauseDelay for Animations

Changing the BackgroundPauseDelay from 10 seconds to 1 second. When an
apps visible service is moved to the background infinite animators will
now be paused after 1 second.

Bug: 273577693
Test: Atest CtsGraphicsTestCases:AnimatorLeakTest
Change-Id: I0bb460dbc9651d74759d1f826738b063716c0845
This commit is contained in:
Steven Terrell
2023-03-15 20:19:47 +00:00
parent 6f2a456d43
commit f53f3ec2a6

View File

@@ -69,7 +69,7 @@ public abstract class Animator implements Cloneable {
* backing field for backgroundPauseDelay property. This could be simply a hardcoded
* value in AnimationHandler, but it is useful to be able to change the value in tests.
*/
private static long sBackgroundPauseDelay = 10000;
private static long sBackgroundPauseDelay = 1000;
/**
* Sets the duration for delaying pausing animators when apps go into the background.