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

Skip to content
Commit e6b17a67 authored by Justin Klaassen's avatar Justin Klaassen
Browse files

Set AlarmActivity's animator progress directly

Bug: 17935860

Power save mode changes the ValueAnimator's internal duration scale,
which prevents ValueAnimator#setCurrentPlayTime(long) from functioning
correctly (b/17404930). As a workaround, set the animator's animated
fraction directly, jumping the animation to a specific point that isn't
dependent on the animator's duration scale or the current play time.
This functionality isn't yet exposed (b/17938711), so the internal
ValueAnimator#animateValue(float) method must be invoked via reflection.

Change-Id: I1af77300b3a95e62c960d482fb2f0263cbbc4fc6
parent 70782a0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment