OSDN Git Service

Fix SystemUI animator leak
authorJorim Jaggi <jjaggi@google.com>
Wed, 20 Jan 2016 00:32:17 +0000 (16:32 -0800)
committerJorim Jaggi <jjaggi@google.com>
Thu, 21 Jan 2016 01:59:27 +0000 (01:59 +0000)
commit3c988197fac989e4cca7fd1a96f6489e8ed4a05b
treeefa75f6d3ef76852532a792c486a6ae4898fc3cc
parent8d6f1956e46cefed0eaa754a468805e2e4d61972
Fix SystemUI animator leak

When there was a state change or layout when there was an animation
set as the mobile icon in the status bar, we never stopped the old
animation, which was infinite. This was using more and more CPU because
the animations never got stopped.

To fix this, we don't update the drawable when a layout happens and we
stop the previous animation when replacing the icon.

Bug: 26616870
Change-Id: If501155d1a99d587e50a1b77ebb03a21c940662b
packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java