Fix waitingForDrawn callback not called when adjusting for IME
Test: Go into multi-window, with IME target at the top. Open IME, lock screen and immediately unlock with fingerprint. Make sure you don't end up with a unrecoverable black screen. Change-Id: I1b9dd3aab64454e2d2894f5f273b70385615c74f Fixes: 32544627
This commit is contained in:
@@ -658,6 +658,14 @@ public class DockedStackDividerController implements DimLayerUser {
|
|||||||
mDelayedImeWin = imeWin;
|
mDelayedImeWin = imeWin;
|
||||||
imeWin.mWinAnimator.startDelayingAnimationStart();
|
imeWin.mWinAnimator.startDelayingAnimationStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we are already waiting for something to be drawn, clear out the old one so it
|
||||||
|
// still gets executed.
|
||||||
|
// TODO: Have a real system where we can wait on different windows to be drawn with
|
||||||
|
// different callbacks.
|
||||||
|
if (mService.mWaitingForDrawnCallback != null) {
|
||||||
|
mService.mWaitingForDrawnCallback.run();
|
||||||
|
}
|
||||||
mService.mWaitingForDrawnCallback = () -> {
|
mService.mWaitingForDrawnCallback = () -> {
|
||||||
mAnimationStartDelayed = false;
|
mAnimationStartDelayed = false;
|
||||||
if (mDelayedImeWin != null) {
|
if (mDelayedImeWin != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user