Use task as reference layer for recents input consumer
So even if there is activity switch inside the task which is animating
by the recents transition, the recents input consumer can always has
the layer above the live-tile task.
Also avoid changing mRecentsDisplayId when restoring parent surface of
navigation bar. Because there can be multiple transitions run at the
same time. If mRecentsDisplayId is set, it will also clear the active
recents record of InputMonitor, but actually the recents transition
hasn't finished yet.
Bug: 319244888
Test: Launch an activity which will launch another activity in
the same task after 3s. Enter recents (either swipe-up
or press recents key) before the next activity is started.
After the next activity is started in the recents overview,
trigger back event, it should return from recents to the
current app instead of no response.
Change-Id: Iedf14b0a345293cf7b11523aa9b4e38a1c821754
2 files changed