diff options
author | Chet Haase <chet@google.com> | 2017-05-26 16:56:12 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2017-05-26 16:56:12 -0700 |
commit | da9374211f84b899e8c09c0600ec3fe6ed35b22f (patch) | |
tree | d8a049dd5108f0137cfdb55c39e5fa41ae6ebd7d /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 06fe82293e9c81e6fa7660a7850239c2728f6e73 (diff) |
Fix infinite loop problem in AnimationHandler
AnimationHandler.doAnimationFrame() iterates on a list that may be changed
during the course of the lopp, especially when Battery Saver is enabled, or
animators have zero duration, coupled with user code launching new animators
when old ones end.
The fix is to iterate through the old size of the list, and avoid processing
new animators in the current frame.
Bug: 37376806 Keyboard doesn't come up when battery saver is turned on on Android O
Test: manual
Change-Id: I40ca1d849e6f337779c23edbab22d80760c22f9b
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions