Fix events so that VisualStabilityCoordinator blocks shade recalculation during activity launch animation
Bug: 230540148 Bug: 227254780 Test: atest VisualStabilityCoordinatorTest Change-Id: Iacb95f8be09acf31faea7f71c4580dbb9fdc0825
This commit is contained in:
@@ -3377,9 +3377,9 @@ public class NotificationPanelViewController extends PanelViewController {
|
||||
|
||||
@Override
|
||||
public void setIsLaunchAnimationRunning(boolean running) {
|
||||
boolean wasRunning = isLaunchTransitionRunning();
|
||||
boolean wasRunning = mIsLaunchAnimationRunning;
|
||||
super.setIsLaunchAnimationRunning(running);
|
||||
if (wasRunning != isLaunchTransitionRunning()) {
|
||||
if (wasRunning != mIsLaunchAnimationRunning) {
|
||||
mPanelEventsEmitter.notifyLaunchingActivityChanged(running);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ class StatusBarLaunchAnimatorController(
|
||||
|
||||
override fun onIntentStarted(willAnimate: Boolean) {
|
||||
delegate.onIntentStarted(willAnimate)
|
||||
if (!willAnimate) {
|
||||
if (willAnimate) {
|
||||
centralSurfaces.notificationPanelViewController.setIsLaunchAnimationRunning(true)
|
||||
} else {
|
||||
centralSurfaces.collapsePanelOnMainThread()
|
||||
}
|
||||
}
|
||||
@@ -51,6 +53,7 @@ class StatusBarLaunchAnimatorController(
|
||||
|
||||
override fun onLaunchAnimationCancelled() {
|
||||
delegate.onLaunchAnimationCancelled()
|
||||
centralSurfaces.notificationPanelViewController.setIsLaunchAnimationRunning(false)
|
||||
centralSurfaces.onLaunchAnimationCancelled(isLaunchForActivity)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user