summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJordan Demeulenaere <jdemeulenaere@google.com>2022-03-09 11:19:36 +0100
committerJordan Demeulenaere <jdemeulenaere@google.com>2022-03-09 15:26:33 +0100
commit0b1e012679136ec6c59390a3697928fda28a2d02 (patch)
treef57735fba77135fced6a3022d23735262a8153d5 /core/java/android
parentf89f27e0051dac8adbe38ea1be7d51f46588545a (diff)
Fix dialog exit animation
This CL fixes a bug that could happen when animating a dialog out at the same time as hiding the SystemUI shade, and that would make the phone unusable until the shade is swiped down again. See b/223387276 for more info. Bug: 223387276 Test: Manual, see b/223387276#comment1 Change-Id: If251b00558a5ca9a927d1be2bb015f1c0acb2d57
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/ViewRootImpl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java
index 760e021bd4ab..3a390ab75e64 100644
--- a/core/java/android/view/ViewRootImpl.java
+++ b/core/java/android/view/ViewRootImpl.java
@@ -3448,6 +3448,12 @@ public final class ViewRootImpl implements ViewParent,
mReportNextDraw = false;
pendingDrawFinished();
}
+
+ // Make sure the consumer is not waiting if the view root was just made invisible.
+ if (mBLASTDrawConsumer != null) {
+ mBLASTDrawConsumer.accept(null);
+ mBLASTDrawConsumer = null;
+ }
}
}