Skip to content
Commit 577cf49a authored by Ben Lin's avatar Ben Lin
Browse files

Check visibility when moving task to front.

Currently when we move a task to the front, we try to resume its
top-most activity and pause the back stacks. However, in a multi-resume
world, it's possible that this becomes a resume -> resume operation,
which no-ops and exits early without pausing the back stack. Instead, we
should check visibility before trying to resume the activity, in order
to update any other tasks that are now no longer visible and thus should
be STOPPED or PAUSED.

Bug: 168852384
Test: atest
PinnedStackTests#testAutoEnterPictureInPictureOnUserLeaveHintWhenPipRequestedNotOverridden

Change-Id: I4dfdaab1f2b0c2116121e460cf3e3183107662e2
parent bea090f3
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