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

Commit db0e699b authored by Steve Kondik's avatar Steve Kondik Committed by Steve Kondik
Browse files

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
parent 82a138ea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();