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

Commit ca5470de authored by Luca Zuccarini's avatar Luca Zuccarini Committed by Android (Google) Code Review
Browse files

Merge "Remove wtf that is not actually a terrible failure." into main

parents fcf9d086 77228465
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1088,9 +1088,8 @@ constructor(
                    if (!success) finishedCallback?.onAnimationFinished()
                }
            } else {
                // This should never happen, as either the controller or factory should always be
                // defined. This final call is for safety in case something goes wrong.
                Log.wtf(TAG, "initAndRun with neither a controller nor factory")
                // This happens when onDisposed() has already been called due to the animation being
                // cancelled. Only issue the callback.
                finishedCallback?.onAnimationFinished()
            }
        }
+3 −1
Original line number Diff line number Diff line
@@ -352,6 +352,7 @@ class ActivityTransitionAnimatorTest : SysuiTestCase() {
            val controller = createController()
            val runner = underTest.createEphemeralRunner(controller)
            runner.onAnimationCancelled()
            waitForIdleSync()
            runner.onAnimationStart(
                TRANSIT_NONE,
                emptyArray(),
@@ -359,12 +360,13 @@ class ActivityTransitionAnimatorTest : SysuiTestCase() {
                emptyArray(),
                iCallback,
            )

            waitForIdleSync()

            verify(controller).onTransitionAnimationCancelled()
            verify(controller, never()).onTransitionAnimationStart(anyBoolean())
            verify(listener).onTransitionAnimationCancelled()
            verify(listener, never()).onTransitionAnimationStart()
            verify(iCallback).onAnimationFinished()
            assertNull(runner.delegate)
        }
    }