[Motion] LS split shade: fix bad AOD <-> LS media transition

Excludes the media view container from the AOD <-> LS transition
as it was causing the media view to move and look strangely.

Fixes: 222044474
Fixes: 202930612
Test: Manually
Change-Id: Idec9700fa3aebe5065f95092c4fc55233066c7f6
This commit is contained in:
Christian Göllner
2022-03-03 17:14:28 +01:00
parent cc9e167538
commit bf75a62520

View File

@@ -1558,6 +1558,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);