Merge "[Motion] LS split shade: fix bad AOD <-> LS media transition" into tm-dev am: ecd166ee7c

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

Change-Id: Ic8906d06156c9298c08cd21f650b89bbec751522
This commit is contained in:
TreeHugger Robot
2022-03-07 15:45:14 +00:00
committed by Automerger Merge Worker

View File

@@ -1467,6 +1467,11 @@ public class NotificationPanelViewController extends PanelViewController {
constraintSet.connect(R.id.keyguard_status_view, END, statusConstraint, END);
if (animate) {
ChangeBounds transition = new ChangeBounds();
if (mShouldUseSplitNotificationShade) {
// Excluding media from the transition on split-shade, as it doesn't transition
// horizontally properly.
transition.excludeTarget(R.id.status_view_media_container, true);
}
transition.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
transition.setDuration(StackStateAnimator.ANIMATION_DURATION_STANDARD);
TransitionManager.beginDelayedTransition(mNotificationContainerParent, transition);