Merge "AOD: Fix flicker at end of AOD2" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3889146f82
@@ -322,7 +322,7 @@ public class DozeScrimController {
|
|||||||
mHandler.removeCallbacks(mPulseOutExtended);
|
mHandler.removeCallbacks(mPulseOutExtended);
|
||||||
if (DEBUG) Log.d(TAG, "Pulse out, mDozing=" + mDozing);
|
if (DEBUG) Log.d(TAG, "Pulse out, mDozing=" + mDozing);
|
||||||
if (!mDozing) return;
|
if (!mDozing) return;
|
||||||
startScrimAnimation(true /* inFront */, mDozeParameters.getAlwaysOn() ? 0 : 1,
|
startScrimAnimation(true /* inFront */, 1,
|
||||||
mDozeParameters.getPulseOutDuration(),
|
mDozeParameters.getPulseOutDuration(),
|
||||||
Interpolators.ALPHA_IN, mPulseOutFinished);
|
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.
|
// Signal that the pulse is all finished so we can turn the screen off now.
|
||||||
pulseFinished();
|
pulseFinished();
|
||||||
|
if (mDozeParameters.getAlwaysOn()) {
|
||||||
|
mScrimController.setDozeInFrontAlpha(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user