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

Commit fb89d1ab authored by Evan Rosky's avatar Evan Rosky
Browse files

Add task-id to animation leash

This was removed by an earlier CL because we thought it
wasn't needed, but since snapshots have moved up one level
(sibling of task), it turns out that this is still needed
so adding it back.

Bug: 151881448
Test: do a transition and see taskid in surface trace
Change-Id: I4b48447f7d235e9828ac886f23a567668f1184cd
parent e60e6524
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3163,6 +3163,11 @@ class Task extends WindowContainer<WindowContainer> {
        return false;
    }

    @Override
    public SurfaceControl.Builder makeAnimationLeash() {
        return super.makeAnimationLeash().setMetadata(METADATA_TASK_ID, mTaskId);
    }

    @Override
    public SurfaceControl getAnimationLeashParent() {
        if (WindowManagerService.sHierarchicalAnimations) {