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

Commit c6a9f9fb authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Verify visibility method of transaction

The new patchset of the original change updated
ActivityRecord#updateSurfaceVisibility from show/hide to
setVisibility, but forgot to update the unit test.

Bug: 383241933
Flag: com.android.window.flags.respect_hierarchy_surface_visibility
Test: ActivityRecordTests
Change-Id: I77654d0fb59b039905333de92628e2e8a81e3f34
parent 7a79cec7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1296,7 +1296,7 @@ public class ActivityRecordTests extends WindowTestsBase {
        }
        clearInvocations(mTransaction);
        waitUntilWindowAnimatorIdle();
        verify(mTransaction).show(bottomActivity.mSurfaceControl);
        verify(mTransaction).setVisibility(bottomActivity.mSurfaceControl, true);
    }

    /**
@@ -3330,7 +3330,7 @@ public class ActivityRecordTests extends WindowTestsBase {
        }

        waitUntilWindowAnimatorIdle();
        verify(mTransaction).hide(activity.mSurfaceControl);
        verify(mTransaction).setVisibility(activity.mSurfaceControl, false);
    }

    @Test // b/162542125