OSDN Git Service

Fix issue with wrong user task being resolved
authorWinson Chung <winsonc@google.com>
Fri, 17 May 2019 00:36:05 +0000 (17:36 -0700)
committerWinson Chung <winsonc@google.com>
Sat, 18 May 2019 14:25:10 +0000 (14:25 +0000)
commit2bc60c047734d3ec61ff847922ceb0c3bfdee235
treec3d574188d3633b866345684943ee054ab8b5394
parentd76c0d751a7dd913ec767eeea31c22bf8bcdebc3
Fix issue with wrong user task being resolved

- Setup wizard used to finish itself and start home automatically, but now
  we have the Tips app show afterwards which requires the user to swipe
  up to go home as a part of learning the gesture. Previously that would
  have created the home task for the secondary user and subsequent swipes
  would work, but in the new flow, the creation of the secondary user
  home task would never happen because the recents animation logic tries
  to find the primary user's home task. This is only an issue on the first
  launch for the secondary user, subsequent launches after completing SUW
  will start home as a part of switching users.

  This change ensures that we account for the user when trying to resolve
  an existing target activity.

Bug: 132410734
Test: atest RecentsAnimationTest
Change-Id: If14ad535948c5aadd83af528592b320dba62c40e
services/core/java/com/android/server/wm/RecentsAnimation.java
services/tests/wmtests/src/com/android/server/wm/RecentsAnimationTest.java