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
Loading
Please register or sign in to comment