Fixing crash when enforcing top stack.

- When updating the stack list, the insert index should take the
  always-on-top stacks when calculating the stack index to insert into.

Test: android.server.cts.ActivityManagerAssistantStackTests
Change-Id: I30aee7395a12c983fe9b778ef57dea9f76008dde
2 files changed