Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f53f3ec2 authored by Steven Terrell's avatar Steven Terrell
Browse files

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
parent 6f2a456d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.