Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c85d40aa authored by Jeff DeCew's avatar Jeff DeCew Committed by Automerger Merge Worker
Browse files

Fix events so that VisualStabilityCoordinator blocks shade recalculation...

Fix events so that VisualStabilityCoordinator blocks shade recalculation during activity launch animation am: 8b636131

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



Change-Id: Ib1191c84b56b4f66bf83b0c7f6d7901ed9eda090
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 19f6c165 8b636131
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
        }
    }
+4 −1
Original line number Diff line number Diff line
@@ -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)
    }
}
 No newline at end of file