Merge "Don't include PiP activity in app transit" into tm-dev am: 20fc9f1896
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17938079 Change-Id: I4b2b433e29adf5326f4ef74a5d482cd724610528 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -5096,7 +5096,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
final boolean recentsAnimating = isAnimating(PARENTS, ANIMATION_TYPE_RECENTS);
|
final boolean recentsAnimating = isAnimating(PARENTS, ANIMATION_TYPE_RECENTS);
|
||||||
if (okToAnimate(true /* ignoreFrozen */, canTurnScreenOn())
|
if (okToAnimate(true /* ignoreFrozen */, canTurnScreenOn())
|
||||||
&& (appTransition.isTransitionSet()
|
&& (appTransition.isTransitionSet()
|
||||||
|| (recentsAnimating && !isActivityTypeHome()))) {
|
|| (recentsAnimating && !isActivityTypeHome()))
|
||||||
|
// If the visibility change during enter PIP, we don't want to include it in app
|
||||||
|
// transition to affect the animation theme, because the Pip organizer will animate
|
||||||
|
// the entering PIP instead.
|
||||||
|
&& !mWaitForEnteringPinnedMode) {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
displayContent.mOpeningApps.add(this);
|
displayContent.mOpeningApps.add(this);
|
||||||
mEnteringAnimation = true;
|
mEnteringAnimation = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user