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

Commit 273dc063 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Temporary fix DialogLaunchAnimatorTest#testShowDialogFromView

This is a temporary fix to make #testShowDialogFromView pass on
git_master/cf_x86_64_phone-userdebug.

Bug: 204589809
Bug: 204561691
Test: https://android-build.googleplex.com/builds/abtd/run/L96200000951897805
Change-Id: I28fe649fde6a107ee939ae8e85090972899f5d17
parent bf3446ce
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -86,7 +86,14 @@ class DialogLaunchAnimatorTest : SysuiTestCase() {
        assertFalse(dialog.isShowing)

        assertFalse(dialog.onStopCalled)
        runOnMainThreadAndWaitForIdleSync { dialog.dismiss() }
        runOnMainThreadAndWaitForIdleSync {
            // TODO(b/204561691): Remove this call to disableAllCurrentDialogsExitAnimations() and
            // make sure that the test still pass on git_master/cf_x86_64_phone-userdebug in
            // Forrest.
            dialogLaunchAnimator.disableAllCurrentDialogsExitAnimations()

            dialog.dismiss()
        }
        assertFalse(hostDialog.isShowing)
        assertFalse(dialog.isShowing)
        assertTrue(hostDialog.wasDismissed)