Clear occluded transition flag if it becomes visible
In case when swiping an auto pip activity with display change,
the visibility could be toggled as visible->invisible->visible
when collecting. So the flags should be updated to avoid
disturbing transition info.
Bug: 340367710
Test: Swipe auto-pip activity and rotate at the same time.
The change info of pip task should not contain flags.
Change-Id: Ia9c78105f4a9782c156744e6cb38681f265955a0
diff --git a/services/core/java/com/android/server/wm/ActivityRecord.java b/services/core/java/com/android/server/wm/ActivityRecord.java
index e814f17..e3b85ae 100644
--- a/services/core/java/com/android/server/wm/ActivityRecord.java
+++ b/services/core/java/com/android/server/wm/ActivityRecord.java
@@ -5672,6 +5672,8 @@
} else if (mTransitionController.inFinishingTransition(this)) {
mTransitionChangeFlags |= FLAGS_IS_OCCLUDED_NO_ANIMATION;
}
+ } else {
+ mTransitionChangeFlags &= ~FLAG_IS_OCCLUDED;
}
return;
}