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

Commit 85694cee authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Temporarily disable consecutive visibility assertion of close pip" into...

Merge "Temporarily disable consecutive visibility assertion of close pip" into udc-dev am: cafd5cd8 am: 80d0cf71 am: 72ab9302 am: 66f1869e

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



Change-Id: I7b41a1ce6367e725ec171fe3b50201bc27965cd3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6e062da5 66f1869e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -888,9 +888,6 @@ public class PipTransition extends PipTransitionController {
        // setting bounds.
        animator.setPipTransactionHandler(mTransactionConsumer).applySurfaceControlTransaction(
                leash, finishTransaction, PipAnimationController.FRACTION_END);
        // Remove the workaround after fixing ClosePipBySwipingDownTest that detects the shadow
        // as unexpected visible.
        finishTransaction.setShadowRadius(leash, 0);
        // Start to animate enter PiP.
        animator.setPipTransactionHandler(mPipOrganizer.getPipTransactionHandler()).start();
    }
+10 −0
Original line number Diff line number Diff line
@@ -95,4 +95,14 @@ open class ClosePipBySwipingDownTest(flicker: FlickerTest) : ClosePipTransition(
    fun focusDoesNotChange() {
        flicker.assertEventLog { this.focusDoesNotChange() }
    }

    @Test
    override fun visibleLayersShownMoreThanOneConsecutiveEntry() {
        // TODO(b/270678766): Enable the assertion after fixing the case:
        // Assume the PiP task has shadow.
        //  1. The PiP activity is visible -> Task is invisible because it is occluded by activity.
        //  2. Activity becomes invisible -> Task is visible because it has shadow.
        //  3. Task is moved outside screen -> Task becomes invisible.
        // The assertion is triggered for 2 that the Task is only visible in one frame.
    }
}