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

Commit 2b192ec5 authored by Adrian Roos's avatar Adrian Roos
Browse files

AOD: Fix flicker at end of AOD2

Fixes a flicker at the end of pulsing out. Instead of the hard cut
we animate out and then hard cut to AOD1.

Change-Id: I64149bb734c10e07e3da2822548a4651b9fb48db
Fixes: 64077859
Test: Receive notification, let it time out; verify no flicker at end of fading out.
parent 382644aa
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ public class DozeScrimController {
            mHandler.removeCallbacks(mPulseOutExtended);
            if (DEBUG) Log.d(TAG, "Pulse out, mDozing=" + mDozing);
            if (!mDozing) return;
            startScrimAnimation(true /* inFront */, mDozeParameters.getAlwaysOn() ? 0 : 1,
            startScrimAnimation(true /* inFront */, 1,
                    mDozeParameters.getPulseOutDuration(),
                    Interpolators.ALPHA_IN, mPulseOutFinished);
        }
@@ -336,6 +336,9 @@ public class DozeScrimController {

            // Signal that the pulse is all finished so we can turn the screen off now.
            pulseFinished();
            if (mDozeParameters.getAlwaysOn()) {
                mScrimController.setDozeInFrontAlpha(0);
            }
        }
    };
}