diff options
author | Steve Kondik <steve@cyngn.com> | 2016-05-04 13:32:28 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2016-05-04 13:53:38 -0700 |
commit | db0e699ba904e1fbbba33ddcea8d1b41d301150b (patch) | |
tree | 6ebcea215c806ce2791c90e69ba71704d24d7456 | |
parent | 82a138ea275bb4f29706251604d0be5e6e38a007 (diff) | |
download | frameworks_base-db0e699ba904e1fbbba33ddcea8d1b41d301150b.zip frameworks_base-db0e699ba904e1fbbba33ddcea8d1b41d301150b.tar.gz frameworks_base-db0e699ba904e1fbbba33ddcea8d1b41d301150b.tar.bz2 |
systemui: Fix the TrustDrawable animation state
* The TrustDrawable animation is being mistakenly activated when
the screen turns off, resulting in SystemUI obliterating
SurfaceFlinger with vsync requests. This results in high power
consumption.
* Add a check for device interactive state when enabling the
animation to prevent this.
Change-Id: Iad9dd2a7c26fced4e412ac0b7dfb393aa58e6c02
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/LockIcon.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LockIcon.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LockIcon.java index 8e58d14..cf39655 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LockIcon.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LockIcon.java @@ -61,7 +61,8 @@ public class LockIcon extends KeyguardAffordanceView { @Override protected void onVisibilityChanged(View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); - if (isShown()) { + if (isShown() && + KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive()) { mTrustDrawable.start(); } else { mTrustDrawable.stop(); |