From bf75a6252083b9330334805ea043fa748bb6267d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6llner?= Date: Thu, 3 Mar 2022 17:14:28 +0100 Subject: [PATCH] [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 --- .../statusbar/phone/NotificationPanelViewController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 01860a822503b..e5ed070ec3ee7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -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);