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

This commit is contained in:
TreeHugger Robot
2022-03-07 15:22:59 +00:00
committed by Android (Google) Code Review

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);