Not resuming stack top activity while restarting if it is launched-behind
Adding launched-behind condition check when determining whether to resume the stack top activity, instead of avoid resuming the launched-behind activity while restarting it. This should be done earlier because AWT and AR will be unified into one object, which updates AWT#mLaunchTaskBehind to false while committing visibility (via ActivityStack#makeVisibleAndRestartIfNeeded() -> AR#setVisible()), and breaks RecentsAnimationTest#testRestartRecentsActivity(). Bug: 80414790 Test: atest RecentsAnimationTest Change-Id: Ica95d4202c6b8e6d315432558529b0a8b7549efb
Loading
Please register or sign in to comment