Skip to content
Commit 55e76027 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Ignore tap ouside for transient-hide task

Because with transient launch, launcher is moved to top when
animating recents animation. Then before the surface of transient
hide task disappears on screen, the tap outside may still be
triggered. Which will send another TO_FRONT transition
(app=CHANGE, recents=CLOSE).

This add the same condition as legacy recents did in
onPointerDownOutsideFocusLocked to skip handling the tap.

Also let RecentsTransitionHandler cancel the animation and restore
the state (hide recents, reorder app to top and show it) if the
unexpected TO_FRONT happens (e.g. setFocusedTask on hide task).

Bug: 278055698
Test: Launch an activity with a dialog.
      Swipe-up and tap screen quickly.
      Home is still visible.
Change-Id: I1d22cb7a391d71b0d5cc0fa57cd8303458a4434d
parent b4a8a82f
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