Fixed some issues with resuming already resumed activity
- Don’t adjust focus stack when a stack is left empty because we moved the last task in it to the stack that will be the new top (focused). Focus can be temporarily adjusted to another stack which we don’t want. - Protect against trying to resume an already resumed activity in ASS.resumeFocusedStackTopActivityLocked. This will just cause a crash on the client side. - In ASS.moveTasksToFullscreenStackLocked defer resume activity call until we are done moving all the tasks to the new stack. - In ASS.moveTaskToStackUncheckedLocked check top running activity instead of just the top activity when we are trying to determine if the task as focus and resumed. It is possible the resumed activity in the task isn’t the top most because the top most is still initializing or going away. Bug: 28219871 Change-Id: I8c1113503f6f83d39983375a4f92155ddc04f20f
Loading
Please register or sign in to comment