Skip to content
Commit 2d2c0e68 authored by Jorge Gil's avatar Jorge Gil
Browse files

Use shell transitions to finalize cancel-to-desktop

When a to-desktop transition is cancelled, a WCT changing the task's
windowing mode to fullscreen was applied using #applyTransaction,
which meant that our transition observer doesn't get notified of the
change that allows it to swap the window decoration from the desktop
to the fullscreen version.
onTaskInfoChanged usually covers cases that transitions don't, but in
this case TaskListeners may just get a vanish callback for the freeform
trask and an appear callback for the fullscreen task. To avoid mixing
these two channels this CL changes the WCT to be applied using shell
transitions. It's also likely that it'll need to be animated in the
future to prevent a jump cut from one config to the next.

Bug: 290050157
Test: drag from fullscreen to desktop without releasing, drag back to
top to cancel the transition. Verify the caption version is correct.

Change-Id: I87ffaab5fc1b88a58b3d075a341a1e2a204a34cb
parent 7baeec3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment