diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-05-16 10:21:50 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-05-16 10:21:50 -0700 |
commit | e76785ff394a3a44c820c6bd90aa139f6a029d30 (patch) | |
tree | 77ccf8af533515d6266bed632a3fa4f1690abea0 /core | |
parent | 62e459a860e81fca0780c81c0af3edc0e5b925ee (diff) | |
parent | 0878d97504479f56b5b2b856fddb6fa4854cda85 (diff) |
Merge 0878d97504479f56b5b2b856fddb6fa4854cda85 on remote branch
Change-Id: I2bd88f7d22970d90c31b710956d1285458ec4c3b
Diffstat (limited to 'core')
-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; + } } } |