Fix issue with wrong mode when adding appeared task

- Currently the mode is calculated relative to whether the
  task being animated is the target task or not

Bug: 209694087
Test: Quickswitch and verify new task is MODE_OPENING
Change-Id: Ic22a2ef68dc0d48849d6c89344d24967ded4cf76
1 file changed