summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2016-02-19 19:33:26 -0800
committerJorim Jaggi <jjaggi@google.com>2016-02-22 16:17:46 -0500
commit02b74b9420f0b4adbec6997b950e244ad0dff56c (patch)
tree2801bdb74604056ee505725b47a909fd9ad9df5d /tools/aapt2/java/JavaClassGenerator.cpp
parent1fd5f379d724cc673a37d52b977e67d82451343a (diff)
Fix leaking animation
Clear animation when destroying window surface. Because we are not stepping in animations for windows if they don't have a surface, we can't use it as a detached wallpaper target animation. When the surface was destroyed while animating, winAnimator.mAnimating was still true, and never got false, because we didn't call stepAnimation on the WindowAnimator anymore. Thus, we were constantly animating, using a lot of battery (surface flinger was constantly pushing frames) and impacting overall system performance. Bug: 27276043 Change-Id: I8b0943da0908c85740dc1113aedb573fb440f162
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions