Merge "Removes use of SESSION_STATE_CONTENT_INVISIBLE" into udc-dev am: f099daf0f9 am: e88dda2a5c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22979483

Change-Id: I5c5445ff3deda52e27691efb915e1403d9df3135
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Kenneth Ford
2023-05-10 03:44:42 +00:00
committed by Automerger Merge Worker

View File

@@ -324,12 +324,12 @@ public class WindowAreaComponentImpl implements WindowAreaComponent,
synchronized (mLock) {
if (stateStatus == SESSION_STATE_INACTIVE) {
// If the last reported session status was VISIBLE
// then the INVISIBLE state should be dispatched before INACTIVE
// then the ACTIVE state should be dispatched before INACTIVE
// due to not having a good mechanism to know when
// the content is no longer visible before it's fully removed
if (getLastReportedRearDisplayPresentationStatus()
== SESSION_STATE_CONTENT_VISIBLE) {
consumer.accept(SESSION_STATE_CONTENT_INVISIBLE);
consumer.accept(SESSION_STATE_ACTIVE);
}
mRearDisplayPresentationController = null;
}