diff options
author | Jordan Demeulenaere <jdemeulenaere@google.com> | 2022-03-09 14:55:07 +0000 |
---|---|---|
committer | Daniel Norman <danielnorman@google.com> | 2022-04-27 09:40:56 -0700 |
commit | 4ec9564fc91b8fcf083537096907249d58dafd8f (patch) | |
tree | d0e2985155d46e4c45046693d8fc1a0af0c52f78 | |
parent | 72a7879444e2b192fe39ff2867a1cedb541e8149 (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
(cherry picked from commit 631a7ef1a60a8d61077e1762e5a18cc53e8211f4)
-rw-r--r-- | core/java/android/view/ViewRootImpl.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 6aa85a6cc1d4..6584c66950d5 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -3393,6 +3393,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; + } } } |