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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user