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

Commit 9d1def8c authored by Evan Rosky's avatar Evan Rosky
Browse files

Make displayChange in existing transition just an error.

This doesn't need to crash the system. It should be an error,
though. Unfortunately, display-changes, currently are not
deferrable so we can't guarantee a unique transition.

Bug: 259004137
Test: systemui-foldable-smoke-suite
Change-Id: Iea946724fa949d731f05f1f975ffd8b338f78684
parent 5bf86ebc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -423,7 +423,7 @@ class TransitionController {
        Transition newTransition = null;
        if (isCollecting()) {
            if (displayChange != null) {
                throw new IllegalArgumentException("Provided displayChange for a non-new request");
                Slog.e(TAG, "Provided displayChange for a non-new request", new Throwable());
            }
            // Make the collecting transition wait until this request is ready.
            mCollectingTransition.setReady(readyGroupRef, false);